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
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%
- 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
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
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
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
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
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
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::