Improve performance by maintaining sort of application listeners [SPR-17308] #21841
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Samuel Bratton opened SPR-17308 and commented
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 (
spring-framework/spring-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java
Line 390 in e366b20
Affects: 4.3.19, 5.0.9
Issue Links:
The text was updated successfully, but these errors were encountered: