in reply to Optimizing non-alphanumeric method calls
Is this an option?
my $can = $obj->can('method'); cmpthese(-1, { direct => sub { $obj->method }, can2 => sub { $can->($obj) }, } ); __END__ Rate direct can2 direct 15259941/s -- -21% can2 19276812/s 26% --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimizing non-alphanumeric method calls
by trizen (Hermit) on Sep 27, 2015 at 18:46 UTC | |
by LanX (Saint) on Sep 27, 2015 at 19:17 UTC |