develooper Front page | perl.perl5.porters | Postings from November 2003

Re: more STORE/FETCH optimization

Thread Previous
From:
Rafael Garcia-Suarez
Date:
November 3, 2003 03:26
Subject:
Re: more STORE/FETCH optimization
Message ID:
20031103122354.6ca1c2c8.rgarcia@hexaflux.com
david nicol wrote:
>
> 
> 
> I wonder how much work would be involved in optmizing
> 
> 	($dest = $source) =~ m/$regex/;
> 
> to imply
> 
> 	{
> 	my $tmp = $source;
> 	$tmp =~ m/$regex/;
> 	$dest = $tmp
> 	}
> 
> when $dest is tied.

In the general case, we don't know at compile time that $dest is
tied, so I don't see exactly what kind of optimization you want
to see here.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About