stevenschlansker opened a new pull request, #22228:
URL: https://github.com/apache/kafka/pull/22228

   While running a stress test for a custom processor (~100 topics, ~10,000 
messages) we identified a test hotspot with a profiler. A small but surprising 
amount of time is spent in Pattern.compile while calling pipeInput - this loop 
recompiles topic patterns every time, which is approximately O(nTopics) * 
O(nMessages).
   
   While normally test code isn't overly concerned with raw performance, this 
seems like an easy win to speed up test cases without losing anything.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to