Possible Duplicate:
What is the fastest XML parser in PHP?
I still need to maintain the xml format, but I’m finding that my main bottleneck is the many calls I make to simplexml_load_file();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
simplexml_load_fileitself is not that slow. The problem is the I/O that it causes, which will be expensive. Using a different method to parse your XML files won’t make it much faster.You can try to optimize your program to need to open the xml file less often or you could think about another way of saving your data, for example in a database to speed up the process.