Random string samples & unicode - Reprise

bearophile bearophileHUGS at lycos.com
Sun Sep 12 19:29:24 PDT 2010


dsimcha:
> I think what we need here is an AsciiString type.

Good. I was thinking about something similar, but your details are more developed. In Python3 there is something vaguely similar, named bytearray.
(Eventually I may like a Dstring-like struct that contains compressed dchars and allows for random access with [] with complexity O(ln n). The compression allows to reduce cache misses and reduces memory traffic, improving performance in some special situations. But this type is for later).

Bye,
bearophile


More information about the Digitalmars-d mailing list