DOM XML Speed Issue

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
HansiGlaser
Forum Newbie
Posts: 1
Joined: Mon Jun 09, 2003 10:28 am

DOM XML Speed Issue

Post by HansiGlaser »

Hi!

Today I wrote my first DOM XML application in PHP 4.2.3 (most recent Debian/unstable package). I read in a GnuCash file (which had to be modifed to have correnct namespace announcments, but I managed this)

When I read in the 1.5MB file with domxml_open_file() 0.2-0.3 seconds are used.

When I read the file into a string and then domxml_open_mem() this, it uses nearly 30 seconds!!!

I'm using mod_php within Apache 1.3.27.

Do you have any idea why there is such a tremendous speed difference?

Bye
Hansi
Post Reply