Eliminate expensive calls to can() in some very hot portions of the code by
authorMichael G Schwern <mschwern@cpan.org>
Sat, 15 Mar 2008 04:55:30 +0000 (04:55 +0000)
committerMichael G Schwern <mschwern@cpan.org>
Sat, 15 Mar 2008 04:55:30 +0000 (04:55 +0000)
commit3ff1602f88b7824c75f2a32f18777347e6139b81
tree8cd34d93945be215f86ead441da3bf919eb528f7
parentc27646a3d7f0945c7d14f2ba551667335e93f5f6
Eliminate expensive calls to can() in some very hot portions of the code by
allowing dbh_do() to take a method name.

$obj->$method_name() is about 50% faster then $obj->can($method_name)->().
lib/DBIx/Class/Storage/DBI.pm
t/dbh_do.t [new file with mode: 0644]