You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "essobedo (via GitHub)" <gi...@apache.org> on 2023/02/27 14:44:13 UTC
[GitHub] [camel] essobedo commented on a diff in pull request #9426: (perf chores) camel-seda: cache queue reference to avoid costly operations in the hot path
essobedo commented on code in PR #9426:
URL: https://github.com/apache/camel/pull/9426#discussion_r1118842612
##########
components/camel-seda/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java:
##########
@@ -100,6 +100,8 @@ public class SedaEndpoint extends DefaultEndpoint implements AsyncEndpoint, Brow
private boolean discardIfNoConsumers;
private BlockingQueueFactory<Exchange> queueFactory;
+ private String key;
+ private QueueReference ref;
Review Comment:
Only `ref` seems to be needed here. Moreover, please note that it should be `volatile` otherwise you have unfortunately no guarantee that its value will be visible from a thread executed by a different core
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org