Re: Optimization in PERL

2008-01-02 Thread Chas. Owens
On Jan 2, 2008 8:04 AM, Paul Johnson <[EMAIL PROTECTED]> wrote: snip > > 2) Static string Handling > > use single quotes rather than doubles. Double quotes force Perl to look for > > a potential interpolation of information, which adds to the overhead of > > printing out the string. > > Print 'I am

Re: Optimization in PERL

2008-01-02 Thread Paul Johnson
On Tue, Jan 01, 2008 at 09:11:58PM -0800, Prabu Ayyappan wrote: > Hi All, > Below are some of the way to optimize the perl code. You can add more to > this if you have something more. Just a few comments ... > 1) use a reference instead of the variable directly > Use reference in passing large a

Re: Optimization in PERL

2008-01-02 Thread John W. Krahn
Prabu Ayyappan wrote: Hi All, Hello, Below are some of the way to optimize the perl code. You can add more to this if you have something more. perldoc -q "How can I make my Perl program run faster" perldoc -q "How can I make my Perl program take less memory" perldoc -q "How can I free an

Re: Optimization in PERL

2008-01-02 Thread Randal L. Schwartz
> "Prabu" == Prabu Ayyappan <[EMAIL PROTECTED]> writes: Prabu> Below are some of the way to optimize the perl code. You can add more Prabu> to this if you have something more. How about subtract from things that are wrong? Prabu> 2) Static string Handling Prabu> use single quotes rather than