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

Cache order result per Class in OrderUtils (for AnnotationAwareOrderComparator) [SPR-17064] #21602

spring-projects-issues opened this issue Jul 19, 2018 · 0 comments
in: core type: enhancement


Copy link

@spring-projects-issues spring-projects-issues commented Jul 19, 2018

Juergen Hoeller opened SPR-17064 and commented

As a follow-up to #21271, it turns out that AnnotationAwareOrderComparator can become a hotspot. Caching annotation-derived order results per Class, ideally at OrderUtils level, should provide significant benefits in scenarios with repeated sort attempts.

Affects: 5.0.6

Issue Links:

  • #21271 Avoid repeated superclass introspection in AnnotationUtils.findAnnotation
  • #21508 Resolved ApplicationListener event type should get cached
  • #21840 Unnecessary sort in AbstractApplicationEventMulticaster

Referenced from: commits 4d3a899, d0bbbf4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: core type: enhancement
None yet

No branches or pull requests

2 participants