You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resolved ApplicationListener event type should get cached [SPR-16970] #21508
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.
We're caching resolved event types within GenericApplicationListenerAdapter.resolveDeclaredEventType now, addressing all invocation paths triggered by AbstractApplicationEventMulticaster.
Activity
spring-projects-issues commentedon Jul 19, 2018
Juergen Hoeller commented
We're caching resolved event types within
GenericApplicationListenerAdapter.resolveDeclaredEventTypenow, addressing all invocation paths triggered byAbstractApplicationEventMulticaster.