Skip to content

Explore additional Spring AOT optimizations on the JVM #31501

Open
@snicoll

Description

@snicoll

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:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions