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

xtrabackup: Add a buffered reader in front of xtrabackup's stdout pipe. #5666

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

enisoc
Copy link
Member

@enisoc enisoc commented Jan 7, 2020

The buffered reader implements WriteTo(), which allows io.CopyN() to avoid allocating a new buffer every time.

From the flamegraph in #5613, we can see that there is a decent-sized chunk attributed directly to io.copyBuffer (excluding its descendants). This change should eliminate that one section, although it's unlikely this is the real cause of #5613.

The buffered reader implements WriteTo(), which allows io.CopyN() to
avoid allocating a new buffer every time.

Signed-off-by: Anthony Yeh <[email protected]>
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepthi deepthi merged commit eb923fc into vitessio:master Jan 9, 2020
@deepthi deepthi deleted the xtrabackup-read-buffer branch January 9, 2020 19:55
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

Successfully merging this pull request may close these issues.

2 participants