Message197092
I just realized that using DefaultSelector isn't optimal for Connection:
It's fine for forkserver, since it's a long lived process, but for
Connection.poll(), this means that it'll use epoll or kqueue: which
means allocating a new epoll/kqueue object for each conn.poll().
That's a couple syscalls more (epoll_create()/epoll_ctl()/close()),
but most important it uses an extra FD per connection.
The attached patch uses PollSelector if available, otherwise SelectSelector. |
|
Date |
User |
Action |
Args |
2013-09-06 19:01:01 | neologix | set | recipients:
+ neologix, giampaolo.rodola, python-dev, sbt |
2013-09-06 19:01:01 | neologix | link | issue18934 messages |
2013-09-06 19:01:00 | neologix | create | |
|