[Issue 2900] Array appending slowed drastically since integration of druntime
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 30 16:20:00 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2900
------- Comment #4 from dsimcha at yahoo.com 2009-04-30 18:20 -------
Been thinking about this some more. It might be a good thing, even with the
full BlkInfo caching, to make array appending only need size. In multithreaded
programs, this might allow for the size to be queried atomically if it's
cached, rather than requiring locking on every array append. Then again, this
caching is somewhat of a kludge, and if you're doing a lot of appends, the
better answer is probably to use an ArrayBuilder/Appender/TNew anyhow.
--
More information about the Digitalmars-d-bugs
mailing list