I'm aware that functional programming/lambdas aren't the best option on the Java world when extreme high performance is the goal. Kotlin address to that issue with the inline
keyword.
When Kotlin is compiled and lambdas are inlined, it is actually creating bigger methods and JIT has a hard cap of N bytes to inline to native code. With that in mind, doesn't Kotlin's inline
hurts JIT's inlining and therefore affects performance?
Also, I noticed that Kotlin adds A LOT of nullchecks to the compiled code, those checks are really small methods and definitely are inlined by JIT, but due to the amount of calls, couldn't that also be a performance issue?
So, if you are aiming to the highest possible performance, what is Kotlin's impact on JVM?
Side node: I know, I know.. "over optimization is the evil of all roots", "you shouldn't care for performance at this level".