Small Buffer Optimization for string and friends

Walter Bright newshound2 at digitalmars.com
Sun Apr 8 10:05:36 PDT 2012


On 4/8/2012 7:53 AM, Andrei Alexandrescu wrote:
> Once anyone asks for .ptr a conservative copy will be made.

That could get expensive. You cannot just point into the small string part, 
because that may only exist temporarily on the stack. There are some 
pathological cases for this.



More information about the Digitalmars-d mailing list