Re: Array concatenation vs. Appender

2013-02-02 Thread Era Scarecrow
On Sunday, 3 February 2013 at 01:41:26 UTC, Jonathan M Davis wrote: reserve should guarantee that you have at least the requested amount of memory already allocated, or it's broken. Its whole purpose is to guarantee that capacity is at least as large as the amount being reserved so that you can

Re: Array concatenation vs. Appender

2013-02-02 Thread Jonathan M Davis
On Sunday, February 03, 2013 02:27:16 Era Scarecrow wrote: > On Saturday, 2 February 2013 at 15:47:37 UTC, FG wrote: > > Yeah but let us move reallocation out of the equation. > > Reserving space limits the amount of RAM used and can avoid > > reallocations all together but in a little test it came

Re: Array concatenation vs. Appender

2013-02-02 Thread Era Scarecrow
On Saturday, 2 February 2013 at 15:47:37 UTC, FG wrote: Yeah but let us move reallocation out of the equation. Reserving space limits the amount of RAM used and can avoid reallocations all together but in a little test it came out that still appender is 2.5-4 times faster than tab ~= str, wher

Re: Array concatenation vs. Appender

2013-02-02 Thread Steven Schveighoffer
On Sat, 02 Feb 2013 10:47:39 -0500, FG wrote: On 2013-02-02 13:50, Era Scarecrow wrote: On Saturday, 2 February 2013 at 11:33:07 UTC, Namespace wrote: I'm was quite surprised as I had heard the first time of these 'appender'. Therefore I'm asking me: Why is the 'appender' method so much mor