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

Use the faster Buf.append instead of ~= #19

Merged
merged 4 commits into from Mar 11, 2019

Conversation

MasterDuke17
Copy link
Contributor

@MasterDuke17 MasterDuke17 commented Feb 26, 2019

On my machine this is much faster and uses a lot less ram. For a 4.9m gzip file that unzips to 17m, just gzslurping it (with :bin) decreased from ~9.5s and 6012364maxresident to ~0.7s and 155352maxresident. For the not :bin case, gzslurping it decreases from ~9.5s to ~7s.

Passes all the tests.

and call it directly so it doesn't have to be looked up for every call
to Str.encode.
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.

None yet

2 participants