On Wed, 10 Apr 2013 08:45:40 -0700
Bob goolsby <bob.gool...@gmail.com> wrote:

> Before you go off on a goose chase, how do you know that substr() is
> going to be a problem for you?  Have you bench-marked it?  If your
> file is as large as you say, I strongly suspect that your bottleneck
> is going to be I/O and any differences between unpack() and substr()
> will be lost in the noise band below 1%.

^^ This.

Kavita, I'd strongly advise profiling your script with Devel::NYTProf
to see exactly where the time is being spent; it can be a surprise
sometimes.

Once you've got some profiling data showing you where the most time is
spent, you know where to focus your efforts.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to