Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Path creation optimization #54

Merged
merged 1 commit into from Sep 25, 2011

Conversation

Projects
None yet
2 participants
Contributor

ncreep commented Sep 24, 2011

After applying this optimization I get the following performance:

[info] -- System Information --
[info] Heap: 1820MB
[info] Java: Sun Microsystems Inc. 1.6.0_25
[info] OS: Windows 7 6.1 amd64
[info]
[info] -- Memory Usage (7 MB) --
[info] anti-xml: 53413432
[info] scala.xml: 26514864
[info] javax.xml: 49023256
[info]
[info] -- Execution Time --
[info] Loading a 7 MB XML file
[info] + anti-xml: min: 357 ms, max: 363 ms, average: 359 ms
[info] + anti-xml StAX: min: 343 ms, max: 350 ms, average: 346 ms
[info] + scala.xml: min: 151 ms, max: 155 ms, average: 152 ms
[info] + javax.xml: min: 113 ms, max: 116 ms, average: 114 ms
[info] Shallow selection in a 7 MB tree
[info] + anti-xml: min: 57 ms, max: 81 ms, average: 68 ms
[info] + scala.xml: min: 25 ms, max: 37 ms, average: 27 ms
[info] Deep selection in a 7 MB tree
[info] + anti-xml: min: 483 ms, max: 502 ms, average: 492 ms
[info] + scala.xml: min: 446 ms, max: 452 ms, average: 449 ms
[info] + javax.xml: min: 13 ms, max: 18 ms, average: 14 ms

Optimizing the creation of Path objects.
Removing redundant hashing on Elems when verifying that there are no
duplicates on a list of path values.

@djspiewak djspiewak merged commit 93f92cf into djspiewak:zipper-replacement Sep 25, 2011

Owner

djspiewak commented Sep 25, 2011

Nice…! Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment