On Fri, Jan 05, 2001 at 07:39:36PM -0500, Uri Guttman wrote:
> the former means the ENTIRE guts of perl would be run on the event
> loop. this is a cool idea IMO. the perl interpreter IS an event loop.
> 
> so tell me, is that nuts or what? :)

No, it's exactly what Perl 5 does.

This is the Perl interpreter:
    while ((PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX))) {
        PERL_ASYNC_CHECK();
    }

The only problem is that right now, PERL_ASYNC_CHECK doesn't actually
do anything. :)

Just for fun, I once took that out and replaced it with a fully-featured, 
signals-aware, prioritizing event loop.

5x slowdown. 

Don't want that.

-- 
Premature optimization is the root of all evil.
                -- D.E. Knuth

Reply via email to