cpython: 2eddf7c2efe6 (original) (raw)

Mercurial > cpython

changeset 81188:2eddf7c2efe6

Issue #16787: Increase asyncore and asynchat default output buffers size, to decrease CPU usage and increase throughput. [#16787]

Charles-François Natali neologix@free.fr
date Tue, 01 Jan 2013 16:31:54 +0100
parents eaba31b32efd
children 6e10b04caeb6
files Lib/asynchat.py Lib/asyncore.py Misc/NEWS
diffstat 3 files changed, 7 insertions(+), 4 deletions(-)[+] [-] Lib/asynchat.py 4 Lib/asyncore.py 2 Misc/NEWS 5

line wrap: on

line diff

--- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -56,8 +56,8 @@ class async_chat (asyncore.dispatcher): # these are overridable defaults

# 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

--- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -532,7 +532,7 @@ class dispatcher_with_send(dispatcher): def initiate_send(self): num_sent = 0

def handle_write(self):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -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