Skip to content

Dismal performance against node with 500 children #14

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
I benchmarked xml2json-xslt against a select node with 500 child option nodes.

time xsltproc --profile xml2json.xsl testselect.xml

real    0m18.185s
user    0m18.100s
sys 0m0.000s

Ouch.

I searched around a bit and found a version which Martynas Jusevičius modified 
to add attribute and array support.

time xsltproc --profile xml2json-martynas.xsl testselect.xml

real    0m0.046s
user    0m0.040s
sys 0m0.010s

Perhaps his changes could be integrated to greatly improve the performance of 
xml2json-xslt? The output is different (the array is at object.select.option 
instead of object.select, actually arguably more sensible), but for how I'm 
using it, modifying my Javascript to accommodate this is trivial.

Benchmark conducted on HP Compaq nc6400 with Intel(R) Core(TM)2 CPU T7200  @ 
2.00GHz and 4GB RAM running Ubuntu 10.04 64-bit.

Original issue reported on code.google.com by [email protected] on 17 Jun 2010 at 4:10

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions