Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: map versus for

by JavaFan (Canon)
on Aug 05, 2008 at 12:16 UTC ( [id://702337]=note: print w/replies, xml ) Need Help??


in reply to map versus for

A couple of things:
  1. If a benchmark shows a difference of less than 50%, you might as well consider them the same, except for the perl and the environment you ran the test on. And then just for the test data. Compiling it with a different compiler, or different compiler settings may show a reverse result.
  2. I'm pretty sure Damian doesn't favour map over for because of performance.
  3. Don't take PBP as a gospel. That would be against the spirit of PBP. Take PBP as a starting point to make up your own mind.
  4. If you prefer for over map, by all means, use for. Doing things *your* way, that's the Perl spirit.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://702337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-16 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found