Array lookup is faster than hash lookup, but the time you save is totally swamped by the time Perl takes to indirect through a blessed reference. If you shift your args rather than using the aliasing of @_ you waste a little more and if you use accessors, you'll slow it down (a lot ) more.
Basically, if speed is truely a criteria, don't use OO in Perl.
In reply to Re: Which, if any, is faster?
by BrowserUk
in thread Which, if any, is faster?
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |