From: William Djaja Tjokroaminata Date: 2002-09-17T03:11:48+09:00 Subject: Re: Is Ruby Array#shift/unshift Efficient? Hi Matz, For the next stable release of Ruby (with shift() fixed), will these two C calls still be valid: len = (long) RARRAY (someArray)->len; obj = rb_ary_entry (someArray, i); Regards, Bill ============================================================================ Yukihiro Matsumoto wrote: > Hi, > In message "Is Ruby Array#shift/unshift Efficient?" > on 02/09/17, William Djaja Tjokroaminata writes: > |I just scanned the Ruby array implementation in array.c, and to my > |surprise, every time Array#shift/unshift is called, memmove() is > |invoked. > "shift" is fixed in 1.7. > matz.