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, SteffenThread Previous | Thread Next