Author josh.r
Recipients josh.r, serhiy.storchaka, vstinner, yselivanov
Date 2016-01-28.16:45:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453999553.37.0.228038171039.issue26233@psf.upfronthosting.co.za>
In-reply-to
Content
Overallocating by 50% might be overkill here; I wouldn't imagine most users of epoll.poll would use anything but:

1. Limit to 1 event
2. Limit to some constant K events
3. Use default maxevents (FD_SETSIZE - 1)

Even if called in pathological order, that would only involve three progressive reallocations before steady state; potentially avoiding one of them (if K and FD_SETSIZE - 1 are within the 50% overallocation) in a relatively uncommon case doesn't seem like it's worth the guaranteed waste in the common case.
History
Date User Action Args
2016-01-28 16:45:53josh.rsetrecipients: + josh.r, vstinner, serhiy.storchaka, yselivanov
2016-01-28 16:45:53josh.rsetmessageid: <1453999553.37.0.228038171039.issue26233@psf.upfronthosting.co.za>
2016-01-28 16:45:53josh.rlinkissue26233 messages
2016-01-28 16:45:53josh.rcreate