3 ms·
You can start up the VM in 80ms for sure, you'll just need much more time after that to load all the damn classes from the bloated libraries you're gonna use. (
by floatboth 9y ago
You can start up the VM in 80ms for sure, you'll just need much more time after that to load all the damn classes from the bloated libraries you're gonna use. (Especially terrible with functional runtimes like Clojure's.)
> pre-allocation of the heap for the JVM
Pre-allocation doesn't matter, it's not allocating physical memory??
The GHC Haskell runtime literally mallocs one terabyte when the program starts :D
However OpenJDK/HotSpot's baseline memory usage is indeed higher than many other VMs'.
Even if you compare with alternative JVMs: I tested a basic Jetty app — it used ~60 MB on JamVM, ~70 MB on OpenJDK.