The project I work on is data-heavy, and performance matters.
It is currently being compiled from Kotlin with -target 11
, but somewhere, it runs on JRE 17+.
Would it make a difference in performance if it was compiled with target 17
? As far as I have seen, there were not many bytecode changes between 11 and 17. Are there any theoretical articles or benchmarks?
(Hypothetically, I could measure myself, but due to how the project is built and deployed, moving everything to Java 17 would be quite a lot of effort just to try -target 17
. The upgrade is scheduled for later.)
Here is a very old similar question for -source 1.4
and -target 1.7
: Using -target higher than -source with javac