[Issue 5198] Appender much slower when appending ranges of elements than individual elements
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 27 11:22:59 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5198
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-12-27 11:20:47 PST ---
turns out the appender was not reserving any extra space when appending an
array, it was simply reallocating -- just enough to hold the existing data +
the new data (in this example, 1 more element). I fixed it so the same
algorithm used to expand the array for one element is now used to append an
array of elements.
changeset http://www.dsource.org/projects/phobos/changeset/2237
--
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