Share

xml for SCRIPT

Tracker: Support Requests

5 Performance issue - ID: 1379234
Last Update: Comment added ( djoham )

I have an xml file that contains ~200 elements(each
containing 14-25 children).

Since I didn't see a way to open a file using xmljs, I
have my php output the file into a JS string called
"xml". I then follow the example and do:
var parser = new DOMImplementation();
var domDoc = parser.loadXML(xml);

It is at this point the my browser seemingly locks up.
I have to tell Firefox to "Continue" ~4 times before
the script finally gets past the loadXML line.

Is this normal? Is there a faster way to load up the
domDoc? Or perhaps a way to open a file directly(if
it's the string parsing that is causing the slowdown)?


Steven ( montgoss ) - 2005-12-13 04:19

5

Closed

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2006-01-09 22:28
Sender: djohamProject Admin

Logged In: YES
user_id=133395

Hello,

I'm guessing that your XML has around 3400 elements then?
If that's the case, you're probably not going to be happy
with the performance of XML for SCRIPT. It tops out at
about 2000 elements before things get too slow to be
acceptable...

David


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2006-01-09 22:28 djoham
close_date - 2006-01-09 22:28 djoham