Re: event-based programming with a twist
[email protected] (( Marc) (A.) (Lehmann ))
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 16, 2001 at 04:46:36AM -0700, Joshua Pritikin <[email protected]> wrote: > >I hope you found this posting somewhat entertaining... > > Wow! Outstanding! Boy, I just learned more about perl internals than I ever imaged. The only thing remaining is the regex machine and the exact details of this $%%&%&§§&% closure cloning business. To keep it short, Coro-0.06 (uploaded to PAUSE 5 mins ago) seems to fix all the problems and works fine for whatever example program I could throw at it, with only minimal memory leaks (<10 bytes per coroutine) on coroutine termination. It's much slower than earlier versions since it has to walk the whole callchain on a task switch, but still it's only about three times slower than an empty method call (that is, even the one-line wrapper around the transfer function (Coro::schedule) costs more time then the transfer itself, with 4 leevls deep callchain). As such, the module is ready for experimentation. I only tried it with perl-5.7.x so far and can only hope the internal data structures aven't changed too much. Thanks for Event...! -- -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / [email protected] |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |