An important pull request: accessing shared affix for immutable data
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Sun Feb 14 04:47:56 PST 2016
On Sunday, 14 February 2016 at 11:14:59 UTC, Andrei Alexandrescu
wrote:
> We can do the same, but we also have a better alternative. Most
> of our allocators support shrink-in-place. For now I haven't
> exposed it as a primitive but that's short work. When the
> object goes away we can shrink memory in place to only the
> length of the metadata.
This will lead to massive memory fragmentation. When you allocate
a lot of objects they tend to be of the same size...
More information about the Digitalmars-d
mailing list