[
https://issues.apache.org/jira/browse/CAMEL-20070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Otavio Rodolfo Piske resolved CAMEL-20070.
------------------------------------------
Resolution: Fixed
> camel-core: avoid unnecessary matching lookup
> ---------------------------------------------
>
> Key: CAMEL-20070
> URL: https://issues.apache.org/jira/browse/CAMEL-20070
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Otavio Rodolfo Piske
> Assignee: Otavio Rodolfo Piske
> Priority: Major
>
> In some cases, we can eagerly determine that some types are not convertible.
> This can happen when both the from and the that from types are the same, but
> their to's don't, [because we only use the from types to compute the
> match|https://github.com/apache/camel/blob/1c144665d14a75c8601da8040855f06e56827c68/core/camel-api/src/main/java/org/apache/camel/converter/TypeConvertible.java#L82-L119].
> This should save a few cycles when dealing with the worst case scenarios.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)