Skip to content

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

Closed

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

Activity

  1. spring-projects-issues commented on Jul 19, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

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

  2. added
    type: enhancement
    in: core
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions