# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #114450]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114450 >


Rakudo Tallinn-286-g9690f6e generates PIR code that uses the get_integer
vtables much more than necessary.

For example
   nqp::p6bool(1 ?? 0 !! 1)
and
   nqp::p6box_i(1 ?? 0 !! 1)
both generate code that goes through the get_integer vtable.

It seems to be a fairly common idiom in the setting:

$ ack  'set \$I\d+, \$P\d+$' src/gen/CORE.setting.pir |wc -l
130

I guess that the majority of those can be avoided.

In a profile of the htmlify script in the perl6/doc repo on github the
Mu.get_integer vtable shows up as the second highest individual block
(though still fairly low with 3% exclusive time).

Cheers,
Moritz

Reply via email to