Closed
Description
Phil Webb opened SPR-12236 and commented
Profiling the Spring Boot Petclinic sample shows that the getMergedBeanDefinition
method in AbstractBeanFactory
is called 80,000+ times (and before configuration is frozen). The main callers are getType
and getTypeMatch
.
We could improve performance by not always cloning the BeanDefinition
in this method.
Affects: 4.1 GA
Issue Links:
- markBeanAsCreated does not clear merged bean definition in a thread-safe fashion [SPR-14269] #18841 markBeanAsCreated does not clear merged bean definition in a thread-safe fashion
- Use already loaded metadata when possible for AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod [SPR-13144] #17735 Use already loaded metadata when possible for AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod
- Reduce memory consumption for caches [SPR-13093] #17684 Reduce memory consumption for caches
Referenced from: commits 09eb492