At 07:21 PM 8/3/00 +0200, Johan Vromans wrote:
>Larry Wall <[EMAIL PROTECTED]> writes:
>
> > Theoretically, we'd like to make subs run as fast as ops.
>
>I'd say that the distinction between subs and ops should be dropped
>completely. Ops can be used as subs, subs as ops. The only
>distinction in the way either is used.
Whoa there. I don't think that's possible. (Not the least of which because
subs are written in perl, and ops are in some compiled language)
Sub calls should be faster than they are, certainly, and its reasonable to
split the entersub op up into pieces which the bytecode builder can leave
out when needed. Calling into a sub, though, will be slower than calling
into something written in XS++, which will be slower than calling into an
add-on op, which will be (slightly) slower than calling an op.
<Damian>I've got an PCR on this. </Damian> :-)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk