Skip to content

Lazy cache provider initialization [SPR-17646] #22175

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-17646 and commented

Several opportunities:

  • Pointcut processing is expensive, and involves reflecting on all methods of all beans. Clearly this doesn't scale well and could be indexed away. Could also be used with @Transactional (and @Secured etc.).
  • The cache provider (e.g. EhCache) has expensive internal initialization. This could perhaps be deferred until the cache is actually used.
  • Some other stuff in Spring Boot might help (condition evaluation and import selection)

Some analysis and benchmarks here: spring-attic/spring-init#5


Affects: 5.1.3

Reference URL: spring-attic/spring-init#5

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions