3 ms·
Questions for those more versed in Go's GC than I: 1) Let's say you want to do everything you can to avoid generating garbage. What would some those technique
by thebigshane 14y ago
Questions for those more versed in Go's GC than I:
1) Let's say you want to do everything you can to avoid generating garbage. What would some those techniques be?
2) There is no delete function is there (for memory deallocation, not hashmap key removal)?
3) Is it possible to eliminate all garbage, and if so could you prevent the GC from starting up at all?
Possible existing answers that are a bit above my understanding (C# and Python spoil me):
http://news.ycombinator.com/item?id=4231048 http://news.ycombinator.com/item?id=4231048
http://blog.golang.org/2011/06/profiling-go-programs.html http://blog.golang.org/2011/06/profiling-go-programs.html
https://groups.google.com/forum/?hl=fr&fromgroups#!topic/golang-nuts/Ir7ZrKLddTU https://groups.google.com/forum/?hl=fr&fromgroups#!topic...