[MacRuby/MacRuby] 528a72: reduce the number of calls of xmalloc family in ra...
5 Jun
2011
5 Jun
'11
1:37 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 528a72bdc14f736a67c5bf9c5af0a1df36fff08f https://github.com/MacRuby/MacRuby/commit/528a72bdc14f736a67c5bf9c5af0a1df36... Author: Watson <watson1978@gmail.com> Date: 2011-06-04 (Sat, 04 Jun 2011) Changed paths: M array.c Log Message: ----------- reduce the number of calls of xmalloc family in rary_reserve(). - before user system total real 0.190000 0.010000 0.200000 ( 0.185828) - after user system total real 0.190000 0.000000 0.190000 ( 0.178484) ---- require 'benchmark' Benchmark.bm do |x| ary = [] x.report{ 1_000_000.times do ary << 1 end } end
5270
Age (days ago)
5270
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com