In article <[EMAIL PROTECTED]>, Bryan Harris
<[EMAIL PROTECTED]> wrote:

> I have a script that takes ~5 seconds to run, but I'd like to get it down to
> <1 sec.  My problem is I don't know which part is the slow part.  So given
> something like this:

You don't have to modify your code to profile it. You can use one of
the profiling modules in the Devel:: namespace.

http://search.cpan.org/dist/Devel-SmallProf/ and my Dr. Dobbs article
on it: http://www.ddj.com/documents/s=1498/ddj0104pl/

http://search.cpan.org/dist/Devel-DProfPP/

I'm also working on a chapter on Profiling for Mastering Perl:
http://www.pair.com/comdog/mastering_perl/Chapters/profiling.html

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to