Skip to content

Replace bytes with bytearray for massive speed up#5

Merged
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
ValdikSS:master
Jan 21, 2025
Merged

Replace bytes with bytearray for massive speed up#5
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
ValdikSS:master

Conversation

@ValdikSS
Copy link
Member

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