You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "Denovo1998 (via GitHub)" <gi...@apache.org> on 2025/12/04 13:25:48 UTC

Re: [PR] [improve][broker] Optimize fine-grained concurrency control for BucketDelayedDeliveryTracker [pulsar]

Denovo1998 commented on PR #24739:
URL: https://github.com/apache/pulsar/pull/24739#issuecomment-3612256630

   @codelipenghui @lhotari @coderzc @Apurva007 @BewareMyPower @thetumbled @dao-jun
   
   **Update the JMH test results.**
   
   ```shell
   java -Xmx4g -jar microbench/target/microbenchmarks.jar \
          -p maxAdditionalUniqueMessages=5000000 \
          -rf json -rff jmh-result-$(date +%s).json \
          ".*BucketDelayedDeliveryTrackerBenchmark.benchmarkConcurrentAddMessage.*" \
          | tee jmh-result-$(date +%s).txt
   ```
   
   1. Current PR optimized implementation.
   https://gist.github.com/Denovo1998/ed2483ef8b0139aaef85663216f7c226
   https://gist.github.com/Denovo1998/2b83267e2e36636bc4dab2ef120ed72c
   <img width="3178" height="490" alt="CleanShot 2025-12-04 at 21 23 16@2x" src="https://github.com/user-attachments/assets/99253e05-471c-4018-8ebd-b6cd4308ca17" />
   
   
   2. Code branch implemented using synchronized.
   https://gist.github.com/Denovo1998/6ce77dbf8aced1b493f4ee7926e80a61
   https://gist.github.com/Denovo1998/81ab70285988e675ec1b5024faa6c3a7
   
   <img width="3124" height="504" alt="CleanShot 2025-12-04 at 21 22 50@2x" src="https://github.com/user-attachments/assets/6f8de0ce-aa07-4a79-a708-e2e821da1387" />
   
   
   


-- 
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