Y
Hacker News
new
|
ask
|
show
|
jobs
by
boyter
2937 days ago
Depending on what you are working on you can pre-allocate everything you need and then turn the GC off. You can even do it in code which is nice. Similar approach to Java.
1 comments
donatj
2937 days ago
How?
link
boyter
2936 days ago
You can control it through an environment variable or through code
https://golang.org/pkg/runtime/debug/#SetGCPercent
link