|
|
|
|
|
by lowbloodsugar
1020 days ago
|
|
Java GC has a non trivial overhead. I’ve moved workloads from Java to rust and gotten a 30x improvement from lack of GC. Likewise I’ve gotten 10x improvement in Java by preallocating objects and reusing then to avoid GC. (Fucking google and the cult of immutable objects). Guess what, lots of things that “make it harder to introduce bugs” make your shit run a lot slower too. |
|
But yes, GC is very much not free and is an explicit tradeoff vs compile time + manual memory management.