Appender is ... slow
    Philippe Sigaud via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Aug 15 05:08:50 PDT 2014
    
    
  
On Fri, Aug 15, 2014 at 1:57 PM, Messenger via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> T[size] beats all of those on dmd head, though it is inarguably a
> bit limiting.
I confirm (even with 2.065). With ldc2 it's optimized out of the way,
so it gives 0 hnsecs :-)
Hmm, what about a sort of linked list of static arrays, that allocates
a new one when necessary?
    
    
More information about the Digitalmars-d-learn
mailing list