Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ByteArrayInputStream has a performance problem #342

Open
liyin-git opened this issue Feb 10, 2022 · 2 comments
Open

ByteArrayInputStream has a performance problem #342

liyin-git opened this issue Feb 10, 2022 · 2 comments

Comments

@liyin-git
Copy link

liyin-git commented Feb 10, 2022

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

@ppr1011
Copy link

ppr1011 commented Sep 6, 2023

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

@liyin-git
Copy link
Author

liyin-git commented Sep 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants