Minimize GC memory footprint

Imperatorn johan_forsberg_86 at hotmail.com
Sun Jan 31 12:14:53 UTC 2021


On Sunday, 31 January 2021 at 04:12:14 UTC, frame wrote:
> On Saturday, 30 January 2021 at 22:57:41 UTC, Imperatorn wrote:
>> On Saturday, 30 January 2021 at 16:42:35 UTC, frame wrote:
>>> Is there a way to force the GC to re-use memory in already 
>>> existing pools?
>>>
>>> I set maxPoolSize:1 to gain pools that can be quicker 
>>> released after there no longer in use. This already reduces 
>>> memory usage to 1:3. Sadly the application creates multiple 
>>> pools that are not necessary in my POV - just fragmented 
>>> temporary slice data like from format(). What can I do to 
>>> optimize?
>>
>> Do you want to optimize for reduced memory usage?
>
> Yes, speed is secondary (long running daemon)

It says experimental, but it's fine:

https://dlang.org/phobos/std_experimental_allocator.html


More information about the Digitalmars-d-learn mailing list