5 ms·
JVM startup overhead, not clojure runtime overhead. That's still there.
by gtrak 14y ago
JVM startup overhead, not clojure runtime overhead. That's still there.
- pjmlp 14y agoWhat startup overhead? I meant AOT to native code.
- MichaelGG 14y agoAOT to Native code just removes the JIT time. Any overhead of actually running the Java runtime and running initialization code is still there.
- pjmlp 14y agoWhat?!
- gtrak 14y agoAOT already means something to clojurists. It means removing the extra runtime compilation phase of .clj into classfiles. The JIT is what the JVM does, which still occurs just like before.
- pjmlp 14y agoUnless the bytecode gets translated to native code ahead of time (AOT). Although OpenJDK/Oracle JVM don't offer this option, other vendors do.
- bickfordb 14y agoMost of the Clojure app startup time (~1.2s on my machine) is the Clojure runtime, not the JVM (usually less than 100ms).