From 8c7665e06d16b4978c2d09203f3ab75e0d0b698b Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Fri, 25 Sep 2015 21:40:19 -0700 Subject: Add some TODO comments for possible poll optimization --- src/core/iomgr/pollset_multipoller_with_poll_posix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/iomgr/pollset_multipoller_with_poll_posix.c') diff --git a/src/core/iomgr/pollset_multipoller_with_poll_posix.c b/src/core/iomgr/pollset_multipoller_with_poll_posix.c index 44031b8ef6..63e0b9edb9 100644 --- a/src/core/iomgr/pollset_multipoller_with_poll_posix.c +++ b/src/core/iomgr/pollset_multipoller_with_poll_posix.c @@ -148,6 +148,8 @@ static void multipoll_with_poll_pollset_maybe_work_and_unlock( POLLOUT, &watchers[i]); } + /* TODO(vpai): Consider first doing a 0 timeout poll here to avoid + even going into the blocking annotation if possible */ GRPC_SCHEDULING_START_BLOCKING_REGION; r = grpc_poll_function(pfds, pfd_count, timeout); GRPC_SCHEDULING_END_BLOCKING_REGION; -- cgit v1.2.3