Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Is there a reason to use "join" instead of just using the period? (Benchmark results.)

by lidden (Curate)
on Nov 19, 2010 at 04:21 UTC ( #872420=note: print w/ replies, xml ) Need Help??


in reply to Re: Is there a reason to use "join" instead of just using the period? (Benchmark results.)
in thread Is there a reason to use "join" instead of just using the period?

On this basis, I'm changing my general rule-of-thumb to use concatenation over join.
Go with the most readable alternative. The slowest of your examples happens 300,000 times per second. I very much doubt you do enough concatenatons in you progams for a 15% improvment of that to matter.


Comment on Re^2: Is there a reason to use "join" instead of just using the period? (Benchmark results.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2015-07-01 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (16 votes), past polls