Path creation now relies on efficient Elem hashing #58

Merged
merged 3 commits into from Sep 28, 2011

Conversation

Projects
None yet
2 participants
@ncreep
Contributor

ncreep commented Sep 26, 2011

Getting the following performance:

[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: 56605672
[info] scala.xml: 26514864
[info] javax.xml: 49023256
[info]
[info] -- Execution Time --
[info] Loading a 7 MB XML file
[info] + anti-xml: min: 435 ms, max: 453 ms, average: 440 ms
[info] + anti-xml StAX: min: 407 ms, max: 434 ms, average: 418 ms
[info] + scala.xml: min: 157 ms, max: 164 ms, average: 158 ms
[info] + javax.xml: min: 114 ms, max: 125 ms, average: 115 ms
[info] Shallow selection in a 7 MB tree
[info] + anti-xml: min: 57 ms, max: 66 ms, average: 59 ms
[info] + scala.xml: min: 25 ms, max: 27 ms, average: 25 ms
[info] Deep selection in a 7 MB tree
[info] + anti-xml: min: 581 ms, max: 651 ms, average: 600 ms
[info] + scala.xml: min: 449 ms, max: 478 ms, average: 459 ms
[info] + javax.xml: min: 14 ms, max: 16 ms, average: 14 ms

ncreep added some commits Sep 24, 2011

Path creation relies on efficient hashing of Elems.
Added a comment about hashing in PathCreator and DeepZipper.

@djspiewak djspiewak merged commit e735f2b into djspiewak:zipper-replacement Sep 28, 2011

@djspiewak

This comment has been minimized.

Show comment
Hide comment
@djspiewak

djspiewak Sep 28, 2011

Owner

Merged! My numbers are not quite as good, but still quite respectable:

[info] Heap: 2039MB
[info] Java: Apple Inc. 1.6.0_26
[info] OS: Mac OS X 10.7.1 x86_64
[info] 
[info] -- Memory Usage (7 MB) --
[info] anti-xml:  56605672
[info] scala.xml: 26514864
[info] javax.xml: 49023256
[info] 
[info] -- Execution Time --
[info] Loading a 7 MB XML file
[info]  + anti-xml: min: 485 ms, max: 499 ms, average: 489 ms
[info]  + anti-xml StAX: min: 483 ms, max: 503 ms, average: 491 ms
[info]  + scala.xml: min: 230 ms, max: 234 ms, average: 231 ms
[info]  + javax.xml: min: 129 ms, max: 152 ms, average: 131 ms
[info] Shallow selection in a 7 MB tree
[info]  + anti-xml: min: 63 ms, max: 65 ms, average: 63 ms
[info]  + scala.xml: min: 17 ms, max: 18 ms, average: 17 ms
[info] Deep selection in a 7 MB tree
[info]  + anti-xml: min: 661 ms, max: 686 ms, average: 668 ms
[info]  + scala.xml: min: 399 ms, max: 408 ms, average: 403 ms
[info]  + javax.xml: min: 15 ms, max: 20 ms, average: 17 ms
Owner

djspiewak commented Sep 28, 2011

Merged! My numbers are not quite as good, but still quite respectable:

[info] Heap: 2039MB
[info] Java: Apple Inc. 1.6.0_26
[info] OS: Mac OS X 10.7.1 x86_64
[info] 
[info] -- Memory Usage (7 MB) --
[info] anti-xml:  56605672
[info] scala.xml: 26514864
[info] javax.xml: 49023256
[info] 
[info] -- Execution Time --
[info] Loading a 7 MB XML file
[info]  + anti-xml: min: 485 ms, max: 499 ms, average: 489 ms
[info]  + anti-xml StAX: min: 483 ms, max: 503 ms, average: 491 ms
[info]  + scala.xml: min: 230 ms, max: 234 ms, average: 231 ms
[info]  + javax.xml: min: 129 ms, max: 152 ms, average: 131 ms
[info] Shallow selection in a 7 MB tree
[info]  + anti-xml: min: 63 ms, max: 65 ms, average: 63 ms
[info]  + scala.xml: min: 17 ms, max: 18 ms, average: 17 ms
[info] Deep selection in a 7 MB tree
[info]  + anti-xml: min: 661 ms, max: 686 ms, average: 668 ms
[info]  + scala.xml: min: 399 ms, max: 408 ms, average: 403 ms
[info]  + javax.xml: min: 15 ms, max: 20 ms, average: 17 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment