2008-09-05から1日間の記事一覧
IRCでclass_evalのコストの話になって mameさんがベンチマークをとってくれました。 実行したプログラムは i = 0; while i < 100000; Object.class_eval { define_method(:foo) { } }; i += 1; end と i = 0; while i < 100000; Object.class_eval "define_m…
IRCでclass_evalのコストの話になって mameさんがベンチマークをとってくれました。 実行したプログラムは i = 0; while i < 100000; Object.class_eval { define_method(:foo) { } }; i += 1; end と i = 0; while i < 100000; Object.class_eval "define_m…