On Mon, Apr 22, 2002 at 01:52:30PM -0700, Brent Dax wrote:
> 
> How about we instead declare that all subs have One True Entry Point,
> and the sub does whatever is needed there?  Normal subs can just set up
> scoping and jump to the beginning of the sub's body; coroutines retrieve
> their context object and use it; XS and JIT call enternative; etc.  That
> way we only pay for the overhead on subs that need it.

I agree.

I've no strong opinions on how it's done, but I do believe that
it's *very* important that subroutine calls be as fast as possible
(and significantly faster than perl5). This must be a priority.

To my mind that means that a subroutine should be responsible for
setting up whatever _it_ needs (and ideally only what it knows it needs).

Then the sub code is encapsulated and can be changed at runtime.

Tim.

Reply via email to