RCString

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 1 14:44:22 PDT 2016


On 06/01/2016 05:03 PM, Timon Gehr wrote:
> The small string optimization also works for GC-allocated strings. Why
> do I always want to use RCString instead of the corresponding GCString?
> (Also, the same approach can be applied to other arrays with value
> semantics.)

Point taken, thanks. Mine was that you can't (reasonably) use the SSO if 
you commit to represent strings as bare slices. -- Andrei


More information about the Digitalmars-d mailing list