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:
Dr.Ruud
Date:
July 10, 2010 16:41
Subject:
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
20100710122929.17556.qmail@lists-nntp.develooper.com
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 );

?

-- 
Ruud

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