develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76438] peephole optimiser could prune more dead code

Thread Previous | Thread Next
From:
Ben Morrow
Date:
July 10, 2010 17:16
Subject:
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
20100711001601.GA29024@osiris.mauzo.dyndns.org
Quoth rvtol+usenet@isolution.nl ("Dr.Ruud"):
> James Mastros wrote:
> 
> > I do wonder, sometimes, if we worry entirely too much about just when
> > tie and overload calls or done.  Would it break actual real-world code
> > to not retrieve the value of $a (tie) or not boolify it (overload)
> > when the value will be thrown away anyway?  Clearly, we can't do this
> > in a maintance release, but perhaps we should add warnings that we are
> > planning on doing it to 5.14.0?  It seems to me that doing this would
> > allow all sorts of optimizations that we currently think of, and then
> > say "that'd change overloading", and throw out, with very little
> > impact on real-world code, which either doesn't use overloading, or
> > would be happy if overloading were made faster by avoiding it where
> > possible.
> 
>    no tie;
> 
>    no overload;
> 
> or
> 
>    use optimize qw( :no_overload :no_tie );

Obviously, this should be

    use less "magic";

:)

Ben


Thread Previous | Thread Next


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