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

Avoid copying from "bytes.Buffer" to get underlying bytes. #811

Merged
merged 1 commit into from Feb 29, 2024

Conversation

fancycode
Copy link
Contributor

As described in #810, this PR removes the unnecessary copying from bytes.Buffer to get the []byte data where possible.

Fixes #810

hhrutter added a commit that referenced this pull request Feb 29, 2024
@hhrutter hhrutter merged commit 95c2d64 into pdfcpu:master Feb 29, 2024
12 of 15 checks passed
@hhrutter
Copy link
Collaborator

hhrutter commented Mar 1, 2024

Thanks again! Good catch 👍🏻

@fancycode fancycode deleted the dont-copy-bytes-buffer branch March 18, 2024 08:07
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.

Avoid unnecessary copying with filters.
2 participants