in reply to Re: Unexpected OO accessor benchmarks
in thread Unexpected OO accessor benchmarks
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% --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unexpected OO accessor benchmarks
by cLive ;-) (Prior) on Feb 09, 2007 at 20:23 UTC | |
by Fletch (Bishop) on Feb 09, 2007 at 20:42 UTC | |
by cLive ;-) (Prior) on Feb 10, 2007 at 00:55 UTC | |
by eric256 (Parson) on Feb 10, 2007 at 02:29 UTC |