General

Profile

HonoreDB (Aaron Weiner)

  • Login: HonoreDB
  • Email: aweiner@mdsol.com
  • Registered on: 11/16/2013
  • Last sign in: 11/16/2013

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

11/17/2013

03:48 AM Ruby Feature #9118: In Enumerable#to_a, use size to set array capa when possible
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)
03:11 AM Ruby Feature #9118: In Enumerable#to_a, use size to set array capa when possible
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)

11/16/2013

11:09 PM Ruby Feature #9118 (Closed): In Enumerable#to_a, use size to set array capa when possible
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)

Also available in: Atom