Re: memory consumption and run time

2005-09-12 Thread Steve Dawson
Quoting Craig Cardimon <[EMAIL PROTECTED]>: > processing almost 70,000 files. Eventually it ran out of memory and > crashed. > > I am clearing every variable as soon as I am done with it, but it's > simply not enough. I have found that if I run the script on 20 or 30,000 > > files at a time, s

Re: regexp /o in a sub

2005-09-12 Thread Steve Dawson
Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: >I'm doing some optimizing on a script (using timethese > and cmpthese calls in stub programs) and I was wondering about this. I > know the compile-once option on regular expressions has been maligned, but > I've found that it gets me about a 3%

Re: regexp /o in a sub

2005-09-12 Thread renard
  - Original Message - From: [EMAIL PROTECTED] To: activeperl@listserv.ActiveState.com Sent: Monday, September 12, 2005 1:48 PM Subject: regexp /o in a sub Wizards, Here's one for you. I'm doing some optimizing on a script (using timethese and cmpthese c

Re: regexp /o in a sub

2005-09-12 Thread Williamawalters
In a message dated 9/12/2005 4:27:22 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > On 9/12/05, [EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:> > > [ i get a performance improvement from the /o switch ]> > I am surprised, as I had thought that /o only applied when there> was a va

Re: regexp /o in a sub

2005-09-12 Thread David Nicol
On 9/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > [ i get a performance improvement from the /o switch ] I am surprised, as I had thought that /o only applied when there was a variable within the regexp. I guess I was wrong on that count. Have you tried C on your switch variable? Does

regexp /o in a sub

2005-09-12 Thread Deane . Rothenmaier
Wizards, Here's one for you. I'm doing some optimizing on a script (using timethese and cmpthese calls in stub programs) and I was wondering about this. I know the compile-once option on regular expressions has been maligned, but I've found that it gets me about a 3% increase on one piece of code

Re: memory consumption and run time

2005-09-12 Thread Craig Cardimon
nikhil anand wrote: Hi, is there any perl module which shows how much memory and time my perl script took to run? Also, is there a way to increase the temporary buffer size which perl uses. I want to parse a very big file. Parsing the file line by line is a slow process. But when I try directly

Re: Code slice in the Perl source that seems hard to understand for me!

2005-09-12 Thread $Bill Luebkert
gao perlone wrote: > This is a perl code slice in a Perl source code named "rengen_lib.pl" > and what is mean between the parenthesis"(CORE:: ... );" CORE:: just means to use the core unlink (builtin version). This is useful if you have overridden the core unlink and want to get back to it rat

Code slice in the Perl source that seems hard to understand for me!

2005-09-12 Thread gao perlone
This is a perl code slice in a Perl source code named "rengen_lib.pl" and what is mean between the parenthesis"(CORE:: ... );" sub safer_unlink { my @names = @_; my $cnt = 0; my $name; foreach $name (@names) { next unless -e $name; chmod 0777, $name if $Needs_Write; ( CORE::