News for hackers. Stuff that matters.
Re:Java is very fast, if you don’t create many objects by kjeetgill on Monday September 12, 2022 @11:14AM (#32811586)
I know you're getting bombarded with a dozen answers but I don't think anyone's also mentioned speculative optimization/deoptimization. Jit can and often does assume things that can't be proven like a specific call site can be inlined through a virtual call because in practice it's always the same hard type. It can back out the optimization later if that proves to be untrue. Or if a function is always called with the same variable because it was read from a config: it can assume that it won't change.

There are no comments on this comment yet.