Fully transitive const is not necessary

Lars Ivar Igesund larsivar at igesund.net
Sun Apr 27 13:59:02 PDT 2008


Sascha Katzner wrote:

> Walter Bright wrote:
>> Most operations are slicing/concatenating, which work just fine on
>> invariant strings.
> 
> Correct me if I'm wrong, but if you want to concatenate two invariant
> strings, you have to allocate a new buffer. Isn't that a possible speed
> penalty compared to regular strings? 

Indeed it is, and this is the main reason for Tango being so damn fast at
text processing.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list