Message259147
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. |
|
Date |
User |
Action |
Args |
2016-01-28 16:45:53 | josh.r | set | recipients:
+ josh.r, vstinner, serhiy.storchaka, yselivanov |
2016-01-28 16:45:53 | josh.r | set | messageid: <1453999553.37.0.228038171039.issue26233@psf.upfronthosting.co.za> |
2016-01-28 16:45:53 | josh.r | link | issue26233 messages |
2016-01-28 16:45:53 | josh.r | create | |
|