Hacker News new | ask | show | jobs
by vmchale 2167 days ago
Curious how the garbage collector works.
1 comments

I used a Go-based window manager called Wingo for quite a while and never noticed any performance issues.
Go is also fully compiled to native code, big difference.
But it's still garbage collected. And GC should be done by the python interpreter proper, so it would be in native code.
A tiny portion of Python's total execution time.
Don't get me wrong; I expect Go to be far more performant than Python. Just, they're both garbage-collected, and I have no reason to expect GC perf (specifically) to differ.
Which just shows that learning about GC algorithms is a must.

http://gchandbook.org/

And the differences between value types, AOT compiled code execution, bytecode interpreters and FFI marshalling costs between bytecode interpreters and native libraries.