Closed
Description
Phil Webb opened SPR-13144 and commented
The AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod()
is called frequently when a typical Spring Boot application starts and tends to show up often when profiling applications.
The majority of the calls are resolving @Configuration
@Bean
methods and since Spring 4.2 now surfaces getReturnTypeName()
in MethodMetadata
we could use this information rather than needing to iterate all methods in the class.
Issue Links:
- Reduce BeanDefinition cloning in AbstractBeanFactory.getMergedBeanDefinition [SPR-12236] #16851 Reduce BeanDefinition cloning in AbstractBeanFactory.getMergedBeanDefinition
0 votes, 5 watchers