2 ms·
For the great majority of your code base, it doesn’t matter (look at scripting languages inside game engines), and for the performance critical parts, you have
by kaba0 6y ago
For the great majority of your code base, it doesn’t matter (look at scripting languages inside game engines), and for the performance critical parts, you have excellent profilers and can easily pinpoint which function creates too much garbage and can write that part in an imperative way with arrays and that’s it. It will run plenty fast.
Especially now with ZGC, not even tiny freezes should happen.