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
  • API Andrei Alexandrescu via Digitalmars-d
    • Re: API Adam D. Ruppe via Digitalmars-d
      • Re: API Adam D. Ruppe via Digitalmars-d
        • Re: API bearophile via Digitalmars-d
          • Re: API Adam D. Ruppe via Digitalmars-d
            • Re: API bearophile via Digitalmars-d
              • Re: API Adam D. Ruppe via Digitalmars-d
      • Re: API Orvid King via Digitalmars-d
    • Re: API bearophile via Digitalmars-d
      • Re: API H. S. Teoh via Digitalmars-d
    • Re: API Brian Schott via Digitalmars-d
    • Re: API Walter Bright via Digitalmars-d
      • Re: API MattCoder via Digitalmars-d
      • Re: API Andrei Alexandrescu via Digitalmars-d
        • Re: API Walter Bright via Digitalmars-d
          • Re: API Andrei Alexandrescu via Digitalmars-d

Reply via email to