in reply to
Benchmarking A DB-Intensive Script
Using Devel::Dprof and dprofpp,
which are part of recent Perl distributions,
you should find out where your code is slow.
Regarding the database issues, DBI::Profile can
find which methods are taking too long (you can look
at Speeding up the DBI for suitable examples and tips).
I make decisions, and my brain carries them out
My brain makes the decisions, and I observe them (if I'm lucky)
I make some decisions, and my brain makes others
My spouse makes decisions and I and my brain carry them out
I wrote a program to relieve me and my brain from the burden of decision-making
The black-helicopter people project the decisions into my brain and then I do as ordered
Results (352 votes),