Skip to content

Add 'Begin Until' to the loop battle - #143

Closed
styd wants to merge 1 commit into
fastruby:mainfrom
styd:begin-until
Closed

styd wants to merge 1 commit into
fastruby:mainfrom
styd:begin-until

Conversation

@styd

@styd styd commented Feb 3, 2018

Copy link
Copy Markdown
Contributor

Based on my experience, begin...end until is always faster than while loop.
I've also tried the until loop and it's about as fast as the begin...end until, but most of the time begin...end until run slightly faster on my machine.

@kbrock kbrock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice introduction of a do until type loop that I often want in ruby but assume is only in C

thanks

@JuanVqz

JuanVqz commented Sep 29, 2026

Copy link
Copy Markdown
Member

Thank you for this contribution! It landed in #246, with you credited as co-author on its commit. We kept your benchmark and README output, and brought the file in line with the current benchmark rules. Closing this in favor of #246.

@JuanVqz JuanVqz closed this Sep 29, 2026
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.

3 participants