[Issue 2504] Reserve for associative arrays
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Mar 9 22:09:37 PST 2016
https://issues.dlang.org/show_bug.cgi?id=2504
Jon Degenhardt <jrdemail2000-dlang at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jrdemail2000-dlang at yahoo.co
| |m
--- Comment #5 from Jon Degenhardt <jrdemail2000-dlang at yahoo.com> ---
I have noticed meaningful performance degradation after associative arrays
reach about 10 million entries. I gave some GC related numbers in this forum
post: https://forum.dlang.org/post/flxmwyeuhjcuekfeduar@forum.dlang.org
In addition to GC stats, it appears likely that resizing the underlying array
will be costly at these numbers. Having an ability to reserve capacity for a
minimum number of keys may address this.
--
More information about the Digitalmars-d-bugs
mailing list