3 ms·
About the GC we can agree to disagree. But about the runtime check out GraalVM which compiles Java to fully native standalone executables.
by invalidname 2y ago
About the GC we can agree to disagree. But about the runtime check out GraalVM which compiles Java to fully native standalone executables.
- jeroenhd 2y agoThe funny thing about GraalVM is that some workloads are actually slower because of some of the dynamic optimisations the JVM applies. Picking the right garbage collector can make a Java program execute faster than when precompiled to native instructions. I'm sure the same would happen when writing C for the JVM. Tricks like dynamically rearranging/compressing pointers and altering structs to better suit the cache lines and data locality properties of the system code is running on can probably boost any major C program, but that's an incredibly complex change to a C program that the JVM just gives you for free.