[Issue 2313] Poor array ~= append performance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 26 08:58:35 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2313
------- Comment #2 from lio+bugzilla at lunesu.com 2008-08-26 10:58 -------
For the record, when changing the loop to..
#int count = 0;
#for(int i; i < n; i++) a[count++] = i;
..it takes 0,43 seconds. (Same flags, n as before.)
Adding std.gc.capacity(a.ptr) to the loop: 2,73 seconds.
--
More information about the Digitalmars-d-bugs
mailing list