This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new a3230c0 CAMEL-16279: camel-core - Optimize core to reduce object allocations by pooloing reusable tasks in the routing engine. a3230c0 is described below commit a3230c089a362c800b4256284b2bd7aea0a65ca9 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Mar 10 09:15:28 2021 +0100 CAMEL-16279: camel-core - Optimize core to reduce object allocations by pooloing reusable tasks in the routing engine. --- .../java/org/apache/camel/impl/engine/CamelInternalProcessor.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java index 80b037e..206625a 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java @@ -355,10 +355,6 @@ public class CamelInternalProcessor extends DelegateAsyncProcessor implements In } finally { // processing is done afterTask.done(true); - // task is done so reset - if (taskFactory != null) { - taskFactory.release(afterTask); - } } // we are done synchronously - must return true return true;