3 ms·
Curious how the garbage collector works.
by vmchale 6y ago
Curious how the garbage collector works.
- mikelward 6y agoI used a Go-based window manager called Wingo for quite a while and never noticed any performance issues.
- pjmlp 6y agoGo is also fully compiled to native code, big difference.
- yjftsjthsd-h 6y agoBut it's still garbage collected. And GC should be done by the python interpreter proper, so it would be in native code.
- pjmlp 6y agoA tiny portion of Python's total execution time.
- yjftsjthsd-h 6y agoDon'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.
- pjmlp 6y agoWhich just shows that learning about GC algorithms is a must. http://gchandbook.org/ 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.