Switch epoll (and select) to use an array of object references

Description

I think this should this be changed so that epoll passes a pointer in its extra data instead of a file descriptor.

The disadvantages:

It probably requires items to become an array of references to selectitems instead of a value array. It would require some care to ensure some of the value assignments (e.g, si = item) still worked correctly.

The advantages:

it would clean up some of the code/remove the need for the epfdtbl table - and no need to rebuild it.
It might be more efficient having an array of references instead of a value array.
I think it would allow items to be added/deleted without exiting the epoll_wait call.

Conclusion

None

Activity

Show:

Richard Chapman May 10, 2016 at 10:17 AM

6.2 I would think (but feel free to close as wontFix if the gain is not expected to be significant)

Gavin Halliday May 10, 2016 at 10:06 AM

Almost certainly added after an offsite. is this likely to provide a significant benefit? if so which fixversion should this target?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Pull Request URL

Created October 16, 2013 at 1:43 PM
Updated July 1, 2016 at 1:21 PM
Resolved July 1, 2016 at 1:21 PM