315157973 opened a new pull request #8207:
URL: https://github.com/apache/pulsar/pull/8207
### Motivation
There are many unnecessary locks in MultiTopicsConsumerImpl, which affect
performance.
BlockingQueue is inherently thread-safe, and there is no need to lock in
many places.
### Modifications
Remove unnecessary locks
### Verifying this change
Use the perf tool, 3 * 8-core 16G nodes,recording time is about 2 minutes
before removingļ¼
Aggregated throughput stats --- 11715556 records received --- 68813.420
msg/s --- 537.605 Mbit/s
after removingļ¼
Aggregated throughput stats --- 25062077 records received --- 161656.814
msg/s --- 1262.944 Mbit/s
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]