[Python-Dev] epoll implementation

"Martin v. Löwis" martin at v.loewis.de
Sat May 27 08:36:12 CEST 2006


Ross Cohen wrote:
> epoll also allows 64 bits of data to be tucked away and returned when events
> happen. Could be useful for saving a dict lookup for every event. However,
> there are some refcounting issues. Dict lookup per event could be traded
> for one on deregistration. All it needs is a small forward-compatible
> extension to the current select.poll API.

I don't understand. You only need the dictionary on registration, to
find out whether this is a new registration or a modification of an
existing one. How could you save the dict lookup at registration time?
And what would you store in the additional data?

Regards,
Martin


More information about the Python-Dev mailing list