lbradstreet opened a new pull request #8708: URL: https://github.com/apache/kafka/pull/8708
We unnecessarily iterate the versions list each time we lookup lastVersion, including in the hotpath Log.appendAsFollower. Given that allVersions is a constant, this is unnecessary. See the profile below from a relatively low replica count cluster. Higher replica count clusters with smaller batches may see a slightly larger effect. ![image](https://user-images.githubusercontent.com/252189/82567449-3d757780-9b32-11ea-9a04-9dc448c0ae3a.png) ---------------------------------------------------------------- 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: us...@infra.apache.org