Re:Go memory ballast: How I learnt to stop worrying and love...
by Dylan16807 on Monday December 02, 2019 @02:09AM
(#21680476)
You don't need a degree to set a max heap.
[ Parent
| on HN ]
Re:Go memory ballast: How I learnt to stop worrying and love...
by dana321 on Monday December 02, 2019 @09:01AM
(#21682311)
I think their problem was the minimum heap size, thats why they have 10Gb sitting doing nothing, as the GC only doubles/halves its size in go.
The way a gaming engine would do it would be to disable the GC and allocate a large chunk of memory and read/write directly to that memory.
Its a pretty quick hack, not bad, really.