4 ms·
GC is not the bottleneck in Clojure startup time. There has been a fair bit written about it. You can use GraalVM to build fast startup Clojure binaries.
by fulafel 7y ago
GC is not the bottleneck in Clojure startup time. There has been a fair bit written about it.
You can use GraalVM to build fast startup Clojure binaries.
- jwhitlark 7y agoCDS and AppCDS, along with jlink, are also great for this.
- fulafel 7y agoThe published AppCDS + Clojure results show a much smaller speedup and require a higher degree of customization int he build. Like 1.5s -> 0.5s for AppCDS+AOT vs 1.5s -> 0.005s for Graal. And you can just use the clj or leiningen native-image plugins/templates. The minuses of Graal include some compatibility snags and being an Oracle product.