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

   - **Changes:** Each append now writes to a new `MemoryRecords` batch instead 
of reusing a single batch object.
   - **Reasons:** If we reuse the same batch, its `baseoffset` will keep 
accumulating.
   
   - **Performance demonstration:** 
   
   **original performance:**
   <img width="455" height="96" alt="image" 
src="https://github.com/user-attachments/assets/4cd6b1bd-789f-4a2d-ae18-4f280da3aa57";
 />
   **new performance:**
   <img width="454" height="96" alt="image" 
src="https://github.com/user-attachments/assets/368d188f-202c-4a54-9f0b-e1c5813a5bc2";
 />
   
   There is no significant impact on performance after applying new method of 
writing info to log.


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