| Store | Cart

Re: Speeding up perl's OOP. Step 1.

From: Dave Mitchell <dav...@iabyn.com>
Mon, 24 Nov 2014 11:08:54 +0000
On Mon, Nov 24, 2014 at 06:12:57AM -0000, Father Chrysostomos wrote:
> Thank you.  I have applied both patches, as b55b14d0f and e3384dcea.

Oleg, note that B.xs needs updating to provide B::METHOP::op_class_sv
and B::METHOP::op_class_targ methods.

Although that may be unnecessary if this pans out:

> However, I wonder whether we couldn't simplify things even more.  The> stash name argument (from the left-hand side of ->) is still pushed> on to the stack.  If we just make *that* into a shared-hash scalar at> compile time, would it not speed things up just as much, but without> having to make methops bigger?  As it is now, we end up with two SVs> in the op tree for the same class name, whereas I think we could> use just one.

-- 
If life gives you lemons, you'll probably develop a citric acid allergy.

Recent Messages in this Thread
Father Chrysostomos Nov 24, 2014 06:12 am
Dave Mitchell Nov 24, 2014 11:08 am
Олег Пронин Nov 24, 2014 04:02 pm
Олег Пронин Nov 24, 2014 11:50 am
Олег Пронин Nov 24, 2014 04:00 pm
Олег Пронин Nov 24, 2014 04:05 pm
Олег Пронин Nov 22, 2014 11:31 pm
Messages in this thread