3 ms·
"On the topic of performance, keep in mind that Go gives the programmer considerable control over memory layout and allocation, much more than is typical in gar
by nkozyra 12y ago
"On the topic of performance, keep in mind that Go gives the programmer considerable control over memory layout and allocation, much more than is typical in garbage-collected languages. A careful programmer can reduce the garbage collection overhead dramatically by using the language well; see the article about profiling Go programs for a worked example, including a demonstration of Go's profiling tools."
And
"The current implementation is a parallel mark-and-sweep collector but a future version might take a different approach." (which I'm certain it will)
http://golang.org/doc/faq#garbage_collection http://golang.org/doc/faq#garbage_collection
- pcwalton 12y ago> On the topic of performance, keep in mind that Go gives the programmer considerable control over memory layout and allocation, much more than is typical in garbage-collected languages. That's true (although I would question the use of "allocation" there—I think Java has as much control over when you allocate as Go does), but "some control" is not always enough control.