huyuanfeng2018 opened a new pull request, #4166:
URL: https://github.com/apache/flink-cdc/pull/4166

   ## What is the purpose of the change
   
   Optimize MySQL CDC binlog split lookup from O(n) to O(log n) using binary 
search, reducing CPU usage from 25% to nearly 0% for tables with thousands of 
splits.
   
   ## Brief change log
   
   - Add `sortFinishedSplitInfos()` and `findSplitByKeyBinary()` methods
   - Update `BinlogSplitReader` to use binary search instead of linear search
   - Add comprehensive unit tests
   
   ## Performance Impact
   
   - **Time Complexity**: O(n) → O(log n)
   
   ## Verifying this change
   
   Added 6 new unit tests covering various scenarios including edge cases and 
consistency verification with linear search.


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