[Issue 5650] A RedBlackTree performance problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 26 19:53:06 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5650
--- Comment #12 from dawg at dawgfoto.de 2012-04-26 19:54:08 PDT ---
Created an attachment (id=1099)
optimzations
dmd -O -release -inline rbtree.d
time ./rbtree 0.566 total
With "scope(success) ++_length" in RBTree._add
the property calls are not inlined.
time ./rbtree 0.362 total
Then new RBTree!Elem allocates 33 bytes spending lots of time and space
for the unused 31 bytes.
Using GC.malloc directly:
time ./rbtree 0.228 total
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list