Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Advice on make my programme faster

by suaveant (Parson)
on Feb 11, 2008 at 18:38 UTC ( [id://667425]=note: print w/replies, xml ) Need Help??


in reply to Advice on make my programme faster

Well, if similarity gets called often with the same arguments then Memoize could help, caching values to prevent recalculation...

Another thing to look into is Devel::SmallProf which shows you how many times a line is run and how long your program spends running it, to help you find slowdowns.

You may also find a speedup if you can manage to create $Measure->new($wn) only once instead of at each call, but I'm not sure if the module will allow that, not being familiar with it.

                - Ant
                - Some of my best work - (1 2 3)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found