mysql-binlog-connector-java icon indicating copy to clipboard operation
mysql-binlog-connector-java copied to clipboard

ByteArrayInputStream has a performance problem

Open liyin-git opened this issue 4 years ago • 2 comments

All readXxx methods of ByteArrayInputStream, Only a one byte read data from the BufferedSocketInputStream (BufferedSocketInputStream.read(byte [] b, int off, int len) has not used). When the binlog quantity is big, can cause 100% CPU utilization, through the Profiler analysis, 83% CPU on ByteArrayInputStream.readXxx() method.

image

The batch read methods in ByteArrayInputStream are not working (read and fill):

image

liyin-git avatar Feb 10 '22 09:02 liyin-git

老哥 分享下优化后的版本?

ppr1011 avatar Sep 06 '23 13:09 ppr1011

这是来自QQ邮箱的自动回复邮件。 您好,您的邮件我已近收到,我尽快给您回复。

liyin-git avatar Sep 06 '23 13:09 liyin-git