Minimize GC memory footprint
frame
frame86 at live.com
Sat Feb 6 20:24:00 UTC 2021
On Saturday, 6 February 2021 at 19:13:33 UTC, Mike Parker wrote:
> On Saturday, 6 February 2021 at 17:50:18 UTC, frame wrote:>
>
>> But .length = 0 should.
>>
>
> What do you expect it to do in this case?
Don't know - some compiler optimization? :D
On Saturday, 6 February 2021 at 19:31:39 UTC, Siemargl wrote:
> 64bit heal a problem, but uses about 500Mb of RAM continuosly
> for this simple example, so its only patching sinkin' ship :-(
Hmmm.. with -m64 it's reporting 80 MB used, 203 MB are really
marked as private bytes. Constant. If I use GC.minimize() it goes
up and down and sometimes consumes more than 203 MB. Best is
100MB. But it doesn't leak endlessly like the 32bit variant.
More information about the Digitalmars-d-learn
mailing list