3 ms·
GC has worse p99 latency, even if it may have better throughout. Also, with manual memory management, you can do all your allocs and frees on other threads tha
by neerajsi 4y ago
GC has worse p99 latency, even if it may have better throughout.
Also, with manual memory management, you can do all your allocs and frees on other threads that are not executing your latency sensitive logic.
With GC, you have to at least execute a stack scan on every thread, and possibly a few extra stw passes. The highest performance gcs also have a lot of peanut butter costs from read barriers.