Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: pass by value vs reference and return by value

by Laurent_R (Canon)
on Oct 27, 2013 at 17:16 UTC ( #1059924=note: print w/replies, xml ) Need Help??

in reply to pass by value vs reference and return by value

OK, you've got the picture by now, you are unlikely to solve your slowness issue by changing the way you pass arguments around. But I can think of a number of things that a C or C++ programmer could do wrong in terms of speed and performance in Perl. Maybe you should post parts of your code so that you might get advice on how to do certain things better.

The one thing you should probably do is to profile your code. There are a number of profiling modules available under the Devel:: name space of the CPAN, such as the simple Devel::Profile module or the much more feature-rich Devel::NYTProf module, etc.

  • Comment on Re: pass by value vs reference and return by value

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059924]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-02-20 14:44 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (271 votes). Check out past polls.