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.copy in IO#gets_to_end #13990

Merged

Conversation

straight-shoota
Copy link
Member

The implementation is almost identical. IO.copy also keeps track of the size which is irrelevant for #gets_to_end. But I'm sure optimizations will get rid of it.
The similar #getb_to_end alrady uses IO.copy.

@straight-shoota straight-shoota added this to the 1.11.0 milestone Nov 17, 2023
@straight-shoota straight-shoota merged commit c7bd41d into crystal-lang:master Nov 20, 2023
54 of 55 checks passed
@straight-shoota straight-shoota deleted the refactor/io-gets_to_end branch November 20, 2023 11:30
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.

2 participants