2010-03-01から1ヶ月間の記事一覧

ObjectDriver memo

http://github.com/yannk/data-objectdriver/blob/master/Changes0.07のChangesをみてたら - When an object is changed, delete the cache instead of updating it. It is a bit more expensive, but should safer.この動作の変更が気になった。マスター/ス…

memo

This is perl, v5.8.8 built for i386-linux #!/usr/bin/perl use strict; use warnings; use Benchmark qw(:all); cmpthese( -2 , { hatena => sub { my $str = 'hogehoge2r'; $str =~ s/(?:2r|3|3r)$//; }, nohatena => sub { my $str = 'hogehoge2r'; $st…