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 IO::DEFAULT_BUFFER_SIZE in Digest#update #13635

Merged

Conversation

carlhoerberg
Copy link
Contributor

Is about 20% faster when the io doesn't have read buffering enabled.

Is about 20% faster when the `io` doesn't have read buffering enabled.
@straight-shoota straight-shoota changed the title Use IO::DEFAULT_BUFFER_SIZE in Digest#update Use IO::DEFAULT_BUFFER_SIZE in Digest#update Jul 5, 2023
Copy link
Member

@beta-ziliani beta-ziliani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we're in the freeze period, but such a small simple change could be considered for 1.9? 🤔

@straight-shoota
Copy link
Member

But where do you cross the line then? 😆

@straight-shoota straight-shoota added this to the 1.10.0 milestone Jul 5, 2023
@beta-ziliani
Copy link
Member

Ah, the dilemma! To follow the rules or to follow the heart?

@straight-shoota
Copy link
Member

But I don't think this is really urgent. If you really want the improved spead ahead of its release it's easy to patch this method in.

@straight-shoota straight-shoota merged commit 9801815 into crystal-lang:master Jul 22, 2023
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants