2008-09-27から1日間の記事一覧
instanceof演算子 - Islands in the byte stream確かに遅いですよねぇ。ただ、一応ベンチとってみたところ、blessed使うのが一番早かったです。以下、$xがオブジェクトの場合のベンチ。 use Benchmark qw(cmpthese timethese :hireswallclock); my $x = bles…
instanceof演算子 - Islands in the byte stream確かに遅いですよねぇ。ただ、一応ベンチとってみたところ、blessed使うのが一番早かったです。以下、$xがオブジェクトの場合のベンチ。 use Benchmark qw(cmpthese timethese :hireswallclock); my $x = bles…