3 ms·
> " But most Java code will perform better under a JIT compiler (which can be Graal’s as well)" This was my understanding, for any comparison of world-class JI
by gavinray 4y ago
> " But most Java code will perform better under a JIT compiler (which can be Graal’s as well)"
This was my understanding, for any comparison of world-class JIT compilers vs AOT codegen. But, fniephaus knows his stuff and there are some compelling particular examples/benchmarks given. I haven't taken the time to do an exhaustive comparison.
It does seem sort of counterintuitive though, doesn't it? Like, what's the point of an optimizing JIT then?
- kaba0 4y agoI’m sure there are examples where Graal Native will beat the JIT version of the same program (e.g. it often does more throughout escape analysis, also, smaller object allow more data to fit inside cache, etc), but in case of a “typical” application I would wager that the JIT approach is better. Maybe that’s just the way idiomatic JVM code is written?