Skip to content

Try using CDS to improve startup time / memory usage #5

@kentonv

Description

@kentonv

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions