Description
Thusinthan Kajendran opened SPR-10197 and commented
There is a start up performance issue, if I configure beans for an application with JavaConfig (JavaConfing with more than 100 beans). The time to create the beans increases significantly more than when I configured the beans via XML-Based. I have performed a profile on the project and found that the problem lies in the MethdoeRefelctionUtils. getUniqueDeclaredMethods()( This method try to filteries out overrided methods from superclass).
But if I break the JavaConfig down into smaller files (each file 10 beans), than the start will be performed quickly. I'm well aware that it is better to have smaller files, however, it is the algorithm of the method RefelctionUtils.getUniqueDeclaredMethods () badly designed when more than 100 beans......
Affects: 3.1.2
Attachments:
- C.java (41.00 kB)
- C300.java (40.61 kB)
- screenshot-1.png (318.90 kB)
- Service.java (48 bytes)
- ServiceImpl.java (66 bytes)
- TestC.java (576 bytes)
- TestC300.java (586 bytes)
Issue Links:
- ReflectionUtils slow down application startup on WebSphere [SPR-11882] #16501 ReflectionUtils slow down application startup on WebSphere
1 votes, 5 watchers