Hi everybody,

I am trying to find out what impacts on the time it takes to parse an XML file using SAX2. The Xerces-c DLL I use was from the binary distribution "xerces-c2_4_0-windows_nt-msvc_60".

I'm using the sample code for "SAX2XMLReader, Constructing an XML Reader", provided at :
http://xml.apache.org/xerces-c/program-sax2.html


it is compiled with VC++ 6, under Windows 2000. I use it as-is to parse a pretty big XML file (understand, 2MB file), which is on my hard drive.

The fact is, when I run it on my dev PC, on which I have compiled it, it takes really long to run. It is a Pentium III 800, with 384MB of RAM (SDRAM). It takes about 30s to parse the file (the time needed to initialize the parser is neglectable, under 70ms). I tried to see if the hard drive had an influence, by placing the file on a distant server on the LAN, without any visible effect on the running time.

I've tried the same executable file on another PC under Windows 2000 also, which is a more recent Pentium IV at 2.5Ghz, with 1GB of DDR. It takes... 0.4s to parse the same file. Which is much more what I was expecting.

I understand that the second computer is faster than the first, but we are talking of a speed factor of 75 here, it seems enormous to me (and the fact is, 30s to parse the file without doing anything of it seems way too long for me even if my PC is a bit old, knowing that for other applications there is no such performance difference between the two)

Do somebody have any idea of which factors influence the speed so much ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to