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

   Currently, `LogConfig.compressionType` is a string so `UnifiedLog.append` 
has to convert string into enum all the time which seems to waste a lot of CPU 
time for something that is rarely changed.
   
   This change makes LogConfig.compressionType to be the parsed enum so that 
the caller can use it directly without parsing enum every time.
   
   A crude benchmark seems to be improved by 3-5%
   
   ### Committer Checklist (excluded from commit message)
   - [X] Verify design and implementation 
   - [X] Verify test coverage and CI build status
   - [X] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to