Project

General

Profile

Feature #16119 » 0001-Let-empty-arrays-being-flattened-not-alloc-additiona.patch

methodmissing (Lourens Naudé), 09/22/2019 06:26 PM

View differences:

array.c
st_table *memo;
st_data_t id;
if (RARRAY_LEN(ary) == 0) {
result = ary_new(0, 0);
RBASIC_SET_CLASS(result, rb_obj_class(ary));
return result;
}
stack = ary_new(0, ARY_DEFAULT_SIZE);
result = ary_new(0, RARRAY_LEN(ary));
vmemo = rb_hash_new();
(2-2/2)