You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to ruby 3.3, `Range#count` is handled by `Enumerable#count`, even
for numeric ranges. For large ranges, `Range#size` is _significantly_
faster. On my system, ruby 3.2 took 54 seconds (at 100% CPU) to run
`(1...2**32).count`.
Thanks to @xiaoge1001 for reporting this issue (#410).
0 commit comments