2 ms·
While Java just does a thread local pointer bump, which will still be more efficient, and closer to stack allocation. Of course you can optimize better with Ru
by gf000 1y ago
While Java just does a thread local pointer bump, which will still be more efficient, and closer to stack allocation.
Of course you can optimize better with Rust/CPP/etc, but it is not trivial and you definitely not get it out of the box for free. My point is, this is a bit overblown how much overhead java has.