spring-projects / spring-projects/spring-framework

Explore additional Spring AOT optimizations on the JVM

Open
#31,501 0 comments 6 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

in: core theme: aot type: enhancement
Dominant language
Java
Stars
60.2k
Forks
38.8k
Avg merge
5d 2h
Merged PRs (30d)
27

Description

Spring AOT is a mandatory step to build a native image for a Spring applications. While adding support for native images, our goal has always been to make this relevant for JVM use cases as well. While we've been focusing on native compatiblity (i.e. RuntimeHints) during the first couple feature release of Spring Framework 6, we'd like to explore JVM use cases and optimize them.

This includes:

  • Performance measurement of our AOT-processed BeanFactory, optimizations for straightforward use cases to avoid computing something that can be set at build-time.
  • Pragmatic migration of runtime processing to AOT, based on benchmarks. With native constraint out of the picture, we can focus on things we're still doing at runtime that can lead to memory/cpu consumption.

See also:

  • #31307

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.