Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
boyter
7y ago
0 comments
Share
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.
undefined | Better HN
0 comments
default
newest
oldest
donatj
7y ago
How?
boyter
OP
7y ago
You can control it through an environment variable or through code
https://golang.org/pkg/runtime/debug/#SetGCPercent
j
/
k
navigate · click thread line to collapse