Skip to content

Optimize GenericConversionService.findConverterForClassPair [SPR-6749] #11415

@spring-projects-issues

Description

@spring-projects-issues

Oliver Becker opened SPR-6749 and commented

The method findConverterForClassPair in GenericConversionService checks interfaces unnecessarily multiple times. This will lead to a performance penalty if no converter can be found.

The point is that addInterfaceHierarchy() adds the entire interface hierarchy to the classQueue (which was done for fixing #10963). However for every processed interface in the queue its entire hierarchy is appended to queue again. In the end a base interface of a multi-level interface hierarchy will be processed multiple times.


Affects: 3.0 GA

This issue is a sub-task of #10963

Issue Links:

Referenced from: commits ad93d20

1 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: taskA general task

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions