What's the go with the GC these days?
Walter Bright
newshound2 at digitalmars.com
Mon Jan 7 03:37:07 UTC 2019
On 1/5/2019 11:03 PM, Neia Neutuladh wrote:
> Interestingly, Java used to use slicing for substrings. This was changed
> (circa java 7, IIRC). The logic was that you might read in a large string
> and preserve a short substring of it for a long time, and that costs you a
> lot of extra memory.
That's why DMD doesn't use slicing of the source file buffer for strings and
identifiers. There's also a caching issue with it, as the slices will be spread
out in memory rather than concentrated.
More information about the Digitalmars-d
mailing list