Feature #16119 » 0001-Let-empty-arrays-being-flattened-not-alloc-additiona.patch
| 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();
|
||
- « Previous
- 1
- 2
- Next »