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

Investigate alignment with Project Leyden #31499

Open
sdeleuze opened this issue Oct 25, 2023 · 3 comments
Open

Investigate alignment with Project Leyden #31499

sdeleuze opened this issue Oct 25, 2023 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Oct 25, 2023

Closely related to the "Spring AOT and Project Leyden" section of the "Runtime efficiency with Spring" blog post, we should explore how combining AppCDS support (see #31497) with a first class support of Spring AOT on the JVM (see #31501) can allow a synergy with Project Leyden premain optimizations (CDS + AOT on steroids for the JVM) upcoming developments and how Spring developers can take advantage of it.

@sdeleuze sdeleuze added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Oct 25, 2023
@sdeleuze sdeleuze added this to the 6.2.x milestone Oct 25, 2023
@sdeleuze sdeleuze self-assigned this Oct 25, 2023
@sdeleuze
Copy link
Contributor Author

sdeleuze commented Jan 15, 2024

I have updated https://github.com/sdeleuze/spring-boot-leyden-demo to leverage the new Leyden 1 step workflow that is much simpler to use than the previous 5 steps workflow. I think not all optimizations are enabled yet, but the data points seems promising. Notice I have for now only measured the startup time improvements, not yet the warmup time improvements.

image

The -XX:CacheDataStore option is intended to be a replacement for the existing -XX:SharedArchiveFile option

In practice, this is indeed a drop in replacement for Class Data Sharing which can take advantage of Spring Framework CDS support. If I am not mistaken, the meaning of CDS will evolve from Class Data Sharing to Cache Data Store and provide improved performances and extended scope (warmup improvement in addition to startup time ones).

@sdeleuze
Copy link
Contributor Author

See #32044 related documentation issue.

@sdeleuze
Copy link
Contributor Author

Spring team feedback sent to the leyden-dev mailing list about:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant