Small Buffer Optimization for string and friends

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Apr 8 08:12:51 PDT 2012


On 4/8/12 9:26 AM, Manu wrote:
> Is it realistic that anyone can actually use raw d-string's in an app
> that performs a lot of string manipulation?

Yes.

> I bet most people end up
> with a custom string class anyway...

That does happen, but much more rarely than one might think.

> Who's written a string-heavy app without their own string helper class?
> I ended up with a string class within about half an hour of trying to
> work with D strings (initially just to support stack strings, then it grew).

A lot of people write string-heavy apps with the built-in strings. 
"Heavy" actually describes a continuum. No matter how you put it, 
improving the performance of built-in strings is beneficial.


Andrei


More information about the Digitalmars-d mailing list