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.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊