I have a set of XML files that contain the saved data of my application.
They are files of about 400 kB each, and I have to parse them all at a certain point of my application.
Is it possible that the current parser takes almost 8 seconds to do the job?
Even taking out the logic of my program that works with the resulting tree of XmlElement objects, still the time taken is 5 seconds (I’m talking about Release builds).
Preloading the content of those files in a string and then parsing it gives no meaningful improvements (the parsing only of the mentioned string still takes almost 5 seconds).
The tests were done on Windows Vista. Surprisingly enough, running the same code on a equivalent Mac results in run times of 2 seconds or less. How is this possible?