Kaydet (Commit) fe22dcab authored tarafından Charles-François Natali's avatar Charles-François Natali

Issue #16787: Increase asyncore and asynchat default output buffers size, to

decrease CPU usage and increase throughput.
üst ef45380b
......@@ -56,8 +56,8 @@ class async_chat (asyncore.dispatcher):
# these are overridable defaults
ac_in_buffer_size = 4096
ac_out_buffer_size = 4096
ac_in_buffer_size = 65536
ac_out_buffer_size = 65536
# we don't want to enable the use of encoding by default, because that is a
# sign of an application bug that we don't want to pass silently
......
......@@ -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):
......
......@@ -200,7 +200,10 @@ Core and Builtins
Library
-------
- Issue 10527: make multiprocessing use poll() instead of select() if available.
- Issue #16787: Increase asyncore and asynchat default output buffers size, to
decrease CPU usage and increase throughput.
- Issue #10527: make multiprocessing use poll() instead of select() if available.
- Issue #16688: Fix backreferences did make case-insensitive regex fail on
non-ASCII strings. Patch by Matthew Barnett.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment