[
https://issues.apache.org/jira/browse/CAMEL-14574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-14574.
---------------------------------
Assignee: Claus Ibsen
Resolution: Fixed
> camel-core - Optimize type converter for core common
> ----------------------------------------------------
>
> Key: CAMEL-14574
> URL: https://issues.apache.org/jira/browse/CAMEL-14574
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.x
>
>
> An idea is to source code generate a single class with switch statements for
> from -> to, so we avoid adding them into the TC registry via DoubleMap which
> takes up heap memory and also the lookup requires to build a hash key.
> If we source code generate a single class with a single method that does a
> switch on the from, and then another switch per to that it supports, and then
> invoke the coverter, then there is no map registration needed and we can save
> heap memory, and the coverter is faster also.
> The JVM can much better optimize switch java code.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)