Skip to content

Preload library caches into native-image heap to speed start up #10044

@JaroslavTulach

Description

@JaroslavTulach

Native image has a unique possibility of snapshoting a heap during build time. We can use this functionality to embed cached IRs of certain libraries into the executable.

The analysis of the boot shows that significant amount of time (almost a second) is spent in reading the caches:
Persistance

We can avoid all of this by loading the IR caches by EnsoLibraryFeature and again even more startup boost.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ❓New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions