3 ms·
Someone did the JMH test for the cost of explicit null checks. https://sites.google.com/a/athaydes.com/renato-athaydes/posts/kotlinshiddencosts-benchmarks http
by ackfoobar 4y ago
Someone did the JMH test for the cost of explicit null checks.
https://sites.google.com/a/athaydes.com/renato-athaydes/posts/kotlinshiddencosts-benchmarks https://sites.google.com/a/athaydes.com/renato-athaydes/post...
Apparently the JVM can inline, then do null check elimination.