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
Improve performance by maintaining sort of application listeners [SPR-17308] #21841
There's a slight but measurable performance hit due to sorting application listeners in AbstractApplicationEventMulticaster.java, even with as few as 2 listeners. The cost is incurred on every call to getApplicationListeners()when listeners are sorted (
Hi, as I was working on opening this jira, I missed that a jira had already been opened on essentially the same issue an hour or so earlier, #21840, I reference a proposed code change in the description above but it only addresses one of the two listener types mentioned in #21840.
The revision applied for #21840 should hopefully address this case as well, maintaining a pre-sorting list in the cached retriever (for the common singleton case). This will be available in the upcoming 5.1.1.BUILD-SNAPSHOT; let me know if this doesn't provide the effect that you expected.
Activity
spring-projects-issues commentedon Sep 27, 2018
Samuel Bratton commented
Hi, as I was working on opening this jira, I missed that a jira had already been opened on essentially the same issue an hour or so earlier, #21840, I reference a proposed code change in the description above but it only addresses one of the two listener types mentioned in #21840.
spring-projects-issues commentedon Sep 29, 2018
Juergen Hoeller commented
The revision applied for #21840 should hopefully address this case as well, maintaining a pre-sorting list in the cached retriever (for the common singleton case). This will be available in the upcoming
5.1.1.BUILD-SNAPSHOT; let me know if this doesn't provide the effect that you expected.