Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JaroslavTulach opened this issue May 23, 2024 · 0 comments
Open

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

JaroslavTulach opened this issue May 23, 2024 · 0 comments

Comments

@JaroslavTulach
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant