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

How?
You can control it through an environment variable or through code https://golang.org/pkg/runtime/debug/#SetGCPercent