Minimize GC memory footprint

frame frame86 at live.com
Sun Jan 31 04:12:14 UTC 2021


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)


More information about the Digitalmars-d-learn mailing list