On Fri, Aug 13, 2010 at 4:17 PM, Alexey Khmara <alex.khm...@gmail.com> wrote:
> Hello.
> I'm trying to use libev in WebSockets server, and was very surprised when
> found that for every fd I need to create distinct watcher. Most of my fds
> share callback and event mask, and, I think, it's very common scenario -
> when you have 100000 identical clients that are distinguished by fd. May be,
> it would be useful to add special type of callback for this situation? It
> will save memory and hardly can decrease speed.

Would that really help? A watcher is about 50 bytes. For 100000
clients you only need about 5 MB of memory.

_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to