diff options
author | Charles-François Natali <neologix@free.fr> | 2013-01-01 15:31:54 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2013-01-01 15:31:54 (GMT) |
commit | fe22dcaba7c5df856359b364fc3c51e76cc3cc67 (patch) | |
tree | 130997fb728b20ba5f5db71f75d15094473b35c0 /Lib/asyncore.py | |
parent | ef45380b6b8cae843fa995409f6ba82227ae9659 (diff) | |
download | cpython-fe22dcaba7c5df856359b364fc3c51e76cc3cc67.zip cpython-fe22dcaba7c5df856359b364fc3c51e76cc3cc67.tar.gz cpython-fe22dcaba7c5df856359b364fc3c51e76cc3cc67.tar.bz2 |
Issue #16787: Increase asyncore and asynchat default output buffers size, to
decrease CPU usage and increase throughput.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index b15ddeb..f146643 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -532,7 +532,7 @@ class dispatcher_with_send(dispatcher): def initiate_send(self): num_sent = 0 - num_sent = dispatcher.send(self, self.out_buffer[:512]) + num_sent = dispatcher.send(self, self.out_buffer[:65536]) self.out_buffer = self.out_buffer[num_sent:] def handle_write(self): |