Skip to content

Reduce BeanDefinition cloning in AbstractBeanFactory.getMergedBeanDefinition [SPR-12236] #16851

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 09eb492

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions