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

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

Thread Previous | Thread Next
Ben Morrow
July 10, 2010 17:16
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
Quoth ("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";



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About