Juergen Hoeller opened SPR-12250 and commented
The current BeanFactory.getBean algorithm is optimized towards singleton access, always checking the singleton map for a quick check before proceeding with scope handling.
Lock-free access to non-singleton beans is equally important and seems to be easy enough to achieve: through a check on registered singleton names before going into the lock on the singleton map.
Affects: 3.2.11, 4.0.7, 4.1 GA
Issue Links:
Referenced from: commits ac4103d, 9d83281, a1538a4
Backported to: 4.0.8, 3.2.12
Juergen Hoeller opened SPR-12250 and commented
The current
BeanFactory.getBeanalgorithm is optimized towards singleton access, always checking the singleton map for a quick check before proceeding with scope handling.Lock-free access to non-singleton beans is equally important and seems to be easy enough to achieve: through a check on registered singleton names before going into the lock on the singleton map.
Affects: 3.2.11, 4.0.7, 4.1 GA
Issue Links:
Referenced from: commits ac4103d, 9d83281, a1538a4
Backported to: 4.0.8, 3.2.12