Skip to content

Explore additional Spring AOT optimizations on the JVM #31501

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:

Activity

  1. added this to the 6.2.x milestone on Oct 25, 2023
  2. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    on Oct 25, 2023
  3. removed their assignment
    on Dec 22, 2023
  4. modified the milestones: 6.2.x, General Backlog on Jul 19, 2024
  5. removed their assignment
    on Aug 16, 2024
  6. changed the title [-]Add first class support for Spring AOT on the JVM[/-] [+]Explore additional Spring AOT optimizations on the JVM[/+] on Nov 4, 2024
  7. modified the milestones: 7.0.x, 7.1.x on Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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