in reply to epoll or libevent

No. I'm not sure that it would be worth it to use these from perl, since the performance gain over a select() loop might only be noticeable in a C app. Why don't you start with select(), which is readilly available from perl, and see how that works for you?

Replies are listed 'Best First'.
Re: Re: epoll or libevent
by powerman (Friar) on Feb 10, 2004 at 17:49 UTC
    Because I need to write server for about 10000 simultaneous connections, while select() support only first 1024 FDs.
      Then you can try Inline::C or SWIG. However, I wonder if you will really be able to handle 10000 connections with a perl-based server without running slowly, since you have to handle them sequentially and either keep all of the state in memory or switch it in and out of disk storage, which would slow things down even more.