[ 
https://issues.apache.org/jira/browse/CAMEL-16279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17293137#comment-17293137
 ] 

Claus Ibsen commented on CAMEL-16279:
-------------------------------------

An idea is also to make redelivery error handler create 2 objects on doBuild 
for simple vs redelivery task to use, and then avoid creating a new task per 
exchange, but reuse the current this, and make the exchange take either the 
simple or redelivery path (requires to separate their code by prefixing their 
method names per path)

> camel-core - Optimize routing engine to reuse internal state objects for GC 
> reduction
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-16279
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16279
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.9.0
>
>         Attachments: Screenshot 2021-03-01 at 17.24.47.png
>
>
> If we use pooled exchanges, then we can try to experiment with storing the 
> nessasary internal objects used during routing on the exchange (in some new 
> place) so the routing engine can reuse these objects without cause object 
> allocations.
> This makes memory usage more stable and reduces the GC.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to