iainctduncan/scheme-for-max

default heap size attribute

Closed this issue · 3 comments

Add an attribute for default heap size to allow users to run with gc entirely disabled if they want. Have tested this, and works fine, first gc run on restart of gc is slow, but if between songs, that doesn't matter. However, we want the heap not to resize itself half way through.

; set heapsize
(set! (s7 'heap-size) {heapsize} )

; watch heap activity
(set! (s7 'gc-stats) 1)

need to recompile s7 to allow starting with a smaller heap size

starting with reducing heap in s7 to 6400, but default heap size to 64000

@heap now sets heap size in KB, min is 8, default is 64 (down from previous 128)