Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Jun 24, 2018 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 24, 2018

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

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

We're caching resolved event types within GenericApplicationListenerAdapter.resolveDeclaredEventType now, addressing all invocation paths triggered by AbstractApplicationEventMulticaster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants