Message147226
Please, review.
With current code, each devpoll object has capacity for managing 256 fds, by default. This is about 2048 bytes. The cost seems reasonable, since a normal program will have only a few devpoll objects around. I have considered an optional parameter to tune this, but interaction with rlimit is messy. Even if we manage 65536 fds, the memory cost is about 512Kbytes per devpoll, and you surely can affort it if you are actually managing 65536 descriptors...
The code is not threadsafe. It doesn't crash, but concurrent use of a devpoll has undefined results.
Please, review for integration. |
|
Date |
User |
Action |
Args |
2011-11-07 14:56:49 | jcea | set | recipients:
+ jcea, exarkun |
2011-11-07 14:56:49 | jcea | set | messageid: <1320677809.47.0.331406536948.issue6397@psf.upfronthosting.co.za> |
2011-11-07 14:56:48 | jcea | link | issue6397 messages |
2011-11-07 14:56:48 | jcea | create | |
|