Skip to content

Revert to string concatenation for decompression#17

Merged
martincivan merged 1 commit intoQualityUnit:masterfrom
ProtonMail:fix/uncompress-perf
Jul 17, 2023
Merged

Revert to string concatenation for decompression#17
martincivan merged 1 commit intoQualityUnit:masterfrom
ProtonMail:fix/uncompress-perf

Conversation

@bartbutler
Copy link

I did some benchmarks and realized that for decompression string concatenation is much more memory-efficient and slightly faster than building an array followed by implode().

@bartbutler
Copy link
Author

@martincivan please do not interpret this as any pressure whatsoever, but would you be able to give me a time estimate for reviewing and merging this? We have a medium-priority performance issue ingesting some emails so if it will be a while I'll update and use our fork rather than wait. Thanks!

@martincivan
Copy link
Contributor

@bartbutler I am sorry, I was on a vacation and completely missed this notification.
It will be released today if tests pass.

@bartbutler
Copy link
Author

I figured it was something like that. No problem at all, and thanks for being so responsive!

@martincivan martincivan merged commit a966377 into QualityUnit:master Jul 17, 2023
@martincivan
Copy link
Contributor

@bartbutler released in v1.2.5

@bartbutler
Copy link
Author

Thank you!

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