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

Replace bytes with bytearray for massive speed up #5

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

ValdikSS
Copy link
Contributor

Bytes type is very inefficient for append/concatenation and involves copying the entire data.

This one-line fix speeds up foomatic-db compression from ~20 minutes to 10 seconds.

Bytes type is very inefficient for append/concatenation and involves
copying the entire data.

This one-line fix speeds up foomatic-db compression from ~20 minutes
to 10 seconds.
@tillkamppeter tillkamppeter merged commit 0d65213 into OpenPrinting:master Jan 21, 2025
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