2 ms·
It can compile Clojure to native executables but do note that Graal’s AOT part doesn’t promise better performance, just faster startup time and reduced memory u
by kaba0 5y ago
It can compile Clojure to native executables but do note that Graal’s AOT part doesn’t promise better performance, just faster startup time and reduced memory usage. Using JIT compilers for long running processes (either the usual OpenJDK’s hotspot or Graal’s JIT compiler) will very likely beat the AOT compiled version for long running processes.
- pjmlp 5y agoGraalVM AOT also accepts PGO.
- eklavya 5y agoCan you please share your experience with PGO? I would be interested in some rough performance ballpark numbers for JVM languages.
- pjmlp 5y agoI am just following its development, here is an article about it, https://medium.com/graalvm/improving-performance-of-graalvm-native-images-with-profile-guided-optimizations-9c431a834edb https://medium.com/graalvm/improving-performance-of-graalvm-...
- lkrubner 5y ago"Using JIT compilers for long running processes (either the usual OpenJDK’s hotspot or Graal’s JIT compiler) will very likely beat the AOT compiled version for long running processes." I didn't know this. Why is this?
- vips7L 5y agoThe JIT has runtime and profile guided data to determine what to do. It can observe behaviors about how the program is actually being used and better optimize or even remove code that isn’t going to execute.