develooper Front page | perl.perl5.porters | Postings from May 2012

Re: Removing from the opcode tree

Thread Previous | Thread Next
From:
Steffen Mueller
Date:
May 17, 2012 22:46
Subject:
Re: Removing from the opcode tree
Message ID:
4FB5E20B.9040805@cpan.org
On 05/16/2012 01:00 AM, Eric Brine wrote:
> On Mon, May 14, 2012 at 7:37 PM, Father Chrysostomos via RT
> <perlbug-followup@perl.org <mailto:perlbug-followup@perl.org>> wrote:
>  > Replacing the entersub op with something else is what
>  > cv_set_call_checker is for.
>
> I haven't found an example that removes from the opcode tree. How would
> I fill in the following call checker

Maybe still useful: pp_sort detects and removes the branches of the op 
code tree that it can optimize with special purpose implementations of 
sort subs (basically variants of {$a cmp $b}. There's an old-ish branch 
of mine in the perl repository which adds optimization for {$a->[0] cmp 
$b->[0]} and its variants, but I could never really get the failure 
modes right when somebody passes in the wrong data structures. Mostly 
for lack of diligence. Look for "smueller/..." branches.

Cheers,
Steffen

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