Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
boyter
8y ago
0 comments
Save
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.
0 comments
2 comments · 1 top-level
top
newest
oldest
donatj
8y ago
· 1 in thread
How?
boyter
OP
8y 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