good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Very interesting info, thank you. I often wonder about such
efficiency when writing perl but it doesn't usually matter
too much. I do write postfix loops because they're
pretty and one-line friendly (I ❤ print$_ for@_) but
not when they're nested because I tend to forget about them.
If they're really much faster I could use comments to remind
myself. Anyway your version is slightly faster (~0.750) but
the data has whitespace and when using map to remove that
it gets even slower than mine. What's going on?
real 0m1.050s Profile:
STOP REINVENTING WHEELS, START BUILDING SPACE ROCKETS!—CPAN 🐫
In reply to Re^4: list of four digit lock combinations without repeated digits
by usemodperl
|
|