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:
hv
Date:
July 16, 2010 07:24
Subject:
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
201007161415.o6GEFDTE021753@zen.crypt.org
Dave Mitchell <davem@iabyn.com> wrote:
:However, for my opinions for the topic in hand...
:
:as regards tiedness, there are actually two orthogonal issues of
:correctness. The first is which order in which the two $a's in $a.$a are
:evaluated; the second is how many times $a is evaluated. It is quite
:possible for the order not to be defined, but still for the fact that $a
:is evaluated twice to be defined. For example, someone might be using tie
:to instrument the number of accesses to a variable.

This agrees with my thinking - I do not care a jot about the order of
evaluation for this case, but I would be unhappy about any change to
the number of times magic is invoked unless there were first strong
evidence presented that substantial improvements (to speed or something
else) would justify the change.

Hugo

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