wave icon indicating copy to clipboard operation
wave copied to clipboard

Try using CDS to improve startup time / memory usage

Open kentonv opened this issue 9 years ago • 0 comments

Something to try out sometime:

Apparently Java has this feature where you can essentially AOT-compile your classes into a big old dump that gets mmap'd in at runtime, for faster startup:

http://openjdk.java.net/groups/hotspot/docs/RuntimeOverview.html#Class%20Data%20Sharing|outline

That doc seems to suggest it's a 32-bit feature, so not totally sure if it will work for us, but it's worth looking into some time. If it works, all Java Sandstorm apps should do this.

Note that for Sandstorm, what you'd want to do is generate the dump before packaging and include it in the spk. That way all instances can share it (read-only).

kentonv avatar Jan 17 '15 01:01 kentonv