﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
1379	"Improve ""heap-shrinkage"" rate"	felix winkelmann		"Submitted by Sven Hartrumpf to chicken-hackers:

----

I would like to experiment with heap shrinking (-:hs) for long
running, memory/GC intensive processes.
 
I checked runtime.c and I read the following shrink condition:
 
count < percentage(percentage(heap_size, C_heap_shrinkage),
 DEFAULT_HEAP_SHRINKAGE_USED)
 
This would imply that heap usage must be < 12.5 % to lead to a heap
shrink because C_heap_shrinkage (via DEFAULT_HEAP_SHRINKAGE) is 50 %
and DEFAULT_HEAP_SHRINKAGE_USED is 25 %.
This (< 12.5 %) is very unlikely for many applications :-)
How about:

count < percentage(heap_size, DEFAULT_HEAP_SHRINKAGE_USED)  ?
----
"	enhancement	closed	minor	5.2	core libraries	4.12.0	fixed	gc heap		trivial
