It definitely breaks that usage, but that's bad usage--we're supposed to use Enumerable#count for that, not size. In cases where size doesn't correctly predict the array, this doesn't really break anything, it just switches out one ba...HonoreDB (Aaron Weiner)
Ah, right! This seems like an opportunity to improve on existing behavior: right now that just silently hangs forever. Do you think we should warn, then hang, or just raise? I'd lean towards the warn because it's possible size is returni...HonoreDB (Aaron Weiner)
Cross-post from https://github.com/ruby/ruby/pull/444. Enumerable#to_a works by creating an empty array with small capacity, then populating it and expanding the capacity as it goes. For large enumerables, this causes several resizes,...HonoreDB (Aaron Weiner)