Proposed new watcher
Marc Lehmann
schmorp at schmorp.de
Fri Aug 13 18:48:44 CEST 2010
On Fri, Aug 13, 2010 at 05:17:40PM +0300, Alexey Khmara <alex.khmara at gmail.com> wrote:
> 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.
How would it save memory, you still have to have _some_ kind of data
structure for each fd, and it's unlielly that it would become any smaller
than the current watcher, unless you have a greta new idea :)
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list