Resolved ApplicationListener event type should get cached [SPR-16970] #21508
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Dave Syer opened SPR-16970 and commented
There's a lot of cacheing already in
AbstractApplicationEventMulticaster
, but it still shows up as a blipon 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 everyevent that is processed (if it is not already a
GenericApplicationListener
, which most are not). The computation ofthe generic type is what fills the flame
graph.
GenericApplicationListenerAdapter
and/orAbstractApplicationEventMulticaster
could probably be optimized toimprove this.
Affects: 5.0.7
Issue Links:
Referenced from: commits 478d725
The text was updated successfully, but these errors were encountered: