19 Jul
2010
19 Jul
'10
3:40 p.m.
On Jul 19, 2010, at 3:52 AM, cee1 wrote:
I've noticed libdispatch will poll event sources with an one-entry kevent receiving queue(queue_kevent.c:162, in function " _dispatch_mgr_invoke"). This will incurs more system calls and hence poorer performance. Why not poll event sources with a larger kevent receiving queue?
No specific reason other than being an optimization which has not been done yet. While it should be a pretty straightforward optimization, I think there are a couple edge cases we need to consider first to ensure that an incoming kevent can't "resurrect" a dispatch source object already scheduled for disposal on the manager queue. Kevin