Minimize GC memory footprint

frame frame86 at live.com
Sat Feb 13 19:14:32 UTC 2021


On Saturday, 13 February 2021 at 17:54:53 UTC, Siemargl wrote:

> And it works too, for 32-bit also =)
> Consuming about 100MB RAM.

Yes, Appender is nice but I had no control about .data since the 
real property is private so I chose that edgy example to find the 
problem with the GC.

As someone mentioned before, in a real application you would 
choose some pre-allocation like reserve() on Appender instead 
which performs better.



More information about the Digitalmars-d-learn mailing list