On Saturday, 13 February 2021 at 19:14:32 UTC, frame wrote:
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.
LDC 1.24 is unaffected of this bug and x64 target consume less
memory.