You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2022/01/25 01:53:00 UTC

[GitHub] [incubator-inlong] baomingyu opened a new issue #2329: [Improve][inlong-dataproxy-sdk]

baomingyu opened a new issue #2329:
URL: https://github.com/apache/incubator-inlong/issues/2329


   ### Description
   
   inglong dataproxy sdk sender.java code in asyncSendMessage method such as:
   `       
    ConcurrentHashMap<String, QueueObject> tmpQueueMap = new ConcurrentHashMap<>();
    ConcurrentHashMap<String, QueueObject> msgQueueMap = callbacks.putIfAbsent(client.getChannel(), tmpQueueMap);
    if (msgQueueMap == null) {
               msgQueueMap = tmpQueueMap;
    }
   `
   can be optimized to like this to reduce the number of invalid objects
   `
   ConcurrentHashMap<String, QueueObject> msgQueueMap =
                   callbacks.computeIfAbsent(client.getChannel(), (k) -> new ConcurrentHashMap<>());
   `
   
   
   ### InLong Component
   
   InLong SDK
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] healchow closed issue #2329: [Improve][inlong-dataproxy-sdk] asyncSendMessage in sender.java can be optimized to reduce the number of invalid objects

Posted by GitBox <gi...@apache.org>.
healchow closed issue #2329:
URL: https://github.com/apache/incubator-inlong/issues/2329


   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] healchow closed issue #2329: [Improve][inlong-dataproxy-sdk] asyncSendMessage in sender.java can be optimized to reduce the number of invalid objects

Posted by GitBox <gi...@apache.org>.
healchow closed issue #2329:
URL: https://github.com/apache/incubator-inlong/issues/2329


   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org