Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Performance issues with subroutines/methods

by diotalevi (Canon)
on Jun 17, 2007 at 21:18 UTC ( [id://621719]=note: print w/replies, xml ) Need Help??


in reply to Performance issues with subroutines/methods

Something else to note - you've got the overhead of modifying @_ with those shift() calls. @_ at first is only a view to the stack. If you modify it, perl has to go create the array and make it real. Drop the shifts() and see if that does anything for you.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

  • Comment on Re: Performance issues with subroutines/methods

Replies are listed 'Best First'.
Re^2: Performance issues with subroutines/methods
by ysth (Canon) on Jun 18, 2007 at 01:37 UTC
    I didn't think shift reifies @_. But getting rid of the shift statement & op helps anyway.

      I guess I really don't know which modifications to @_ trigger reification. I though any change would and Gryphon said something to that effect once. I didn't investigate it further.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found