It Doesn't Matter!
By Paul Johnson (pjcj) from Zürich.pm
Lightning talk
Target audience: Any
Language:
Tags: lightning
This lightning talk will be a half serious rant about not being overly concerned with how fast various Perl constructs are.
It seems like every other message (exaggeration) on the beginners@perl.org mailing list is concerned about the speed of some perl construct or other. Which is quicker, a for loop or a map? Is it faster to call my subroutines as &subname()? You can do that faster with tr//! And whilst this seems to be particularly prevalent amongst beginners, developers at all levels can get caught up in this sort of nonsense.
I want to emphasise that these concerns are, at the very best, extremely premature. I might touch on IO costs, memory usage, big oh notation and XS.
I don't want to impart any great wisdom, I simply want to note that in almost all cases It Doesn't Matter!