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

INI::parse, .each_line is faster than .lines.each #5366

merged 1 commit into from Dec 8, 2017


Copy link

@mig-hub mig-hub commented Dec 8, 2017

I am still quite new to Crystal, so forgive/educate me if I am overlooking something, but String#each_line seems to be faster than String#lines and then Array#each. Most likely because it does not have to generate an Array.

Sorry it is not the most exciting place to gain speed, but I guess every little helps.

@RX14 RX14 merged commit 78fa174 into crystal-lang:master Dec 8, 2017
@RX14 RX14 added this to the Next milestone Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants