Memory allocation faile on string concat

Steven Schveighoffer schveiguy at yahoo.com
Wed Nov 10 11:15:33 PST 2010


On Wed, 10 Nov 2010 14:06:40 -0500, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:

> Just tried it, Appender is actually slower.  This *is* a problem, it  
> should be way faster than builtin array appending.
>
> I will look into it.

More data, Appender taking an array of elements is significantly slower  
than taking a single element (by an order of magnitude).

I'll try to figure out why.

BTW, if you append individual wchars instead of a string of a single  
wchar, Appender does beat the pants off of builtin appends.

-Steve


More information about the Digitalmars-d-learn mailing list