in reply to Re: IO::Lambda - suggestions wanted
in thread IO::Lambda - suggestions wanted
You're right, there's no benchmarks, thanks for the tip, I'll go for that. As for the lambda, it seemed somewhat natural for me back then - anonymous callback bound to IO... OTOH there would be no problem to make the lambda keyword an alias to another, less confusing name, so the only question is what that name should be? new_io_chain ? Doesn't sound... don't know really.
update: here's some premature benchmarks. the source code will be added to the next release, for now it's here
Single-process tcp client and server; server echoes back everything is sent by the client. 500 connections sequentially created, instructed to send a single line to the server, and destroyed.
2.4GHz x86-64 linux Lambda using select 0.694 sec Lambda using AnyEvent 0.684 sec Raw sockets using select 0.145 sec POE using select 5.349 secthe POE numbers are somewhat strange. I might've done something wrong there, anyone interested is welcome to check tcp-poe.pl from the link above.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: IO::Lambda - suggestions wanted
by vrk (Chaplain) on Jul 09, 2008 at 09:30 UTC | |
by dk (Chaplain) on Jul 09, 2008 at 09:46 UTC |
In Section
Meditations