Project

General

Profile

« Previous | Next » 

Revision 37582

array.c: make array really suitable for queue

  • array.c (ary_ensure_room_for_push): make array really suitable for queue. [Feature #6638] when array is shared (which happens after Array#shift), and ARY_SHARED_NUM == 1 (which is very often when array used as queue), then make rb_ary_push push directly into shared array.