Syntactic Confectionery Delight | |
PerlMonks |
Re^5: Number functions.. primes (ugly code runs faster)by jdporter (Paladin) |
on May 08, 2015 at 15:36 UTC ( [id://1126110]=note: print w/replies, xml ) | Need Help?? |
I'd be curious to know whether you could get a slight bump in performance by replacing
(etc.) with
Perhaps naively, I think you would, since you'd eliminate (1) a lexical scope, with all of its setup and teardown; and (2) a numeric comparison.
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
In Section
Cool Uses for Perl
|
|