Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: speed : obj vs func, by_name vs positional

by princepawn (Parson)
on May 25, 2007 at 14:09 UTC ( [id://617495]=note: print w/replies, xml ) Need Help??


in reply to speed : obj vs func, by_name vs positional

The interesting thing is that it is more than 2 times faster compared to using object and passing the values by name.
Eeek. I'm a diehard Params::Validate user and so, on top of passing my parms by name, I also validate them. I shudder to think of the time lost... then again Mason uses P::V internally.

And writing code without validating parameters is poor software engineering. Instead of trying to add hairs up to a head, I personally would just follow the 80/20 rule and try to optimize that 20% that might be causing speed issues.


Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
  • Comment on Re: speed : obj vs func, by_name vs positional

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2026-01-20 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (124 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.