Yup, what he should have done is pass an anonymous coderef instead:
normal => sub { $self->a() },
Which gives reasonable results:
Rate normal optimized direct normal 662252/s -- -15% -56% optimized 775194/s 17% -- -49% direct 1515152/s 129% 95% --
In reply to Re^2: Unexpected OO accessor benchmarks
by Fletch
in thread Unexpected OO accessor benchmarks
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |