Version française
Home     About     Download     Resources     Contact us    
Browse thread
Asynchronous IO programming in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] Asynchronous IO programming in OCaml
On Sun, Oct 24, 2010 at 18:50, Jérémie Dimino <jeremie@dimino.org> wrote:
> I made an implementation of lwt using libev [1]. I tested it with
> ocsigen and ab but the result was always a bit better with select than
> with epoll. That is why i did not replace select by libev in the main
> branch. In fact i never found the source of any benchmark comparing
> select to epoll on the web.

The performance of select was also usually slightly better in my
experiments than with epoll for at least a few tens of descriptors.
It really depends on what your requirements are.  If you are facing
hundreds or even thousands of connections, you'll probably want to
consider epoll.  select does not scale well.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com