When every microsecond counts you factor out expensive stuff into XS code. Or don't use perl.
That said, constructing (and tearing down) a hash (which happens if you call foo( {bar => 'quux'} )) at every subroutine invocation is expensive, but calling a sub in the first place is probably more expensive (stack frame setup / enter / leave / unwind cycle).
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: When every microsecond counts: Parsing subroutine parameters
by shmem
in thread When every microsecond counts: Parsing subroutine parameters
by snowhare
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |