[
https://issues.apache.org/jira/browse/CAMEL-19398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17727946#comment-17727946
]
Claus Ibsen commented on CAMEL-19398:
-------------------------------------
its a chicken and egg, converting to integer for data that is numeric - then
its fast to do without checking first if all input is 0..9 or not.
> camel-core: type converter performs slowly due to exception-based flow control
> ------------------------------------------------------------------------------
>
> Key: CAMEL-19398
> URL: https://issues.apache.org/jira/browse/CAMEL-19398
> Project: Camel
> Issue Type: Task
> Components: camel-core
> Reporter: Otavio Rodolfo Piske
> Assignee: Otavio Rodolfo Piske
> Priority: Major
> Attachments:
> profile-cbr-text-2023-05-29-4.0.0-SNAPSHOT-2023-05-29-070154.html
>
>
> It looks like, when consuming data of different types, our type converters
> perform extremely slowly. For instance, in a test sending data of different
> types (Strings, Integers, Beans, etc) in a machine that easily routes 800k
> exchanges per sec, with a CBR, it decreases to as much as 49k exchanges/sec.
> Analyzing the frame graphs for this (attached) we can see that there is a
> significant amount of time spent dealing with handling exceptions.
> Camel's ability to use the processing power available in the machine seems to
> be severely affected by this:
> {noformat}
> 39132464047 instructions # 0.80 insn per cycle
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)