Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 45f70c3b290384c31930a93b1f8f9afec73b5833 https://github.com/MacRuby/MacRuby/commit/45f70c3b290384c31930a93b1f8f9afec7... Author: Watson <watson1978@gmail.com> Date: 2011-06-15 (Wed, 15 Jun 2011) Changed paths: M array.c Log Message: ----------- Optimize the rary_erase() using the GC_MEMMOVE. * before user system total real 0.850000 0.000000 0.850000 ( 0.844986) * after user system total real 0.020000 0.000000 0.020000 ( 0.012210) {{{ require 'benchmark' times = 100_000 Benchmark.bm do |x| strings = [] 5000.times do strings << "abcd" end x.report do i = 0 while i < times strings.delete_at(2) i += 1 end end end }}}