You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/29 07:54:41 UTC

[GitHub] [pulsar] Demogorgon314 opened a new pull request, #15388: [improve][broker] Use for-each instead of the for-loop on pulsar collections

Demogorgon314 opened a new pull request, #15388:
URL: https://github.com/apache/pulsar/pull/15388

   ### Motivation
   
   In #15369, it introduced the for-loop to replace the for-each, but the for-loop will create many `Map.Entry` objects, we should use for-each instead for-loop.
   
   Someplace are using atomic type, we can use `org.apache.commons.lang.mutable.MutableInt` here.
   
   ### Modifications
   
   * Use for-each instead of for-each
   * Use MutableInt instead of atomic type.
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
     
   - [x] `no-need-doc` 
   (Please explain why)
     
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-added`
   (Docs have been already added)


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] Technoboy- merged pull request #15388: [improve][broker] Use for-each instead of the for-loop on pulsar collections

Posted by GitBox <gi...@apache.org>.
Technoboy- merged PR #15388:
URL: https://github.com/apache/pulsar/pull/15388


-- 
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@pulsar.apache.org

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