[Chicago-talk] Performance issue

Andy Lester andy at petdance.com
Wed Apr 20 10:06:02 PDT 2011


On Apr 20, 2011, at 12:03 PM, Warren Lindsey wrote:

> I assume by your use of <> and print without a filehandle that you are going through pipes and reading from STDIN and writing to STDOUT. I suspect opening input and output file handles will be more efficient. Less data movement between buffers. 

First rule of optimization: Don't optimize without measuring first.

I'd suggest running your program under Devel::NYTProf and finding out where all the time is being spent.

xoa


--
Andy Lester => andy at petdance.com => www.techworklove.com => AIM:petdance







More information about the Chicago-talk mailing list