Skip to content

Resolved ApplicationListener event type should get cached [SPR-16970] #21508

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-16970 and commented

There's a lot of cacheing already in
AbstractApplicationEventMulticaster, but it still shows up as a blip
on the flame graphs (roughly 3% of a stripped down Spring Boot app with functional bean registrations). Every
ApplicationListener is queried to compute its event type for every
event that is processed (if it is not already a
GenericApplicationListener, which most are not). The computation of
the generic type is what fills the flame
graph. GenericApplicationListenerAdapter and/or
AbstractApplicationEventMulticaster could probably be optimized to
improve this.

 


Affects: 5.0.7

Issue Links:

Referenced from: commits 478d725

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions