API

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Mon May 5 17:39:43 PDT 2014


Adam D. Ruppe:

> I don't think it needs any special beyond hasLength!T so it can 
> allocate it all in one go, so it wouldn't be specialized on 
> Take specifically, just anything with an explicit length 
> property.

If you know that the item is always the same (coming from a 
repeat) can't you optimize the memory filling better?

Bye,
bearophile


More information about the Digitalmars-d mailing list