aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2013-01-01 16:31:54 +0100
committerCharles-François Natali <neologix@free.fr>2013-01-01 16:31:54 +0100
commitfe22dcaba7c5df856359b364fc3c51e76cc3cc67 (patch)
tree130997fb728b20ba5f5db71f75d15094473b35c0 /Lib/asynchat.py
parentFix overlooked licence text. (diff)
downloadcpython-fe22dcaba7c5df856359b364fc3c51e76cc3cc67.tar.gz
cpython-fe22dcaba7c5df856359b364fc3c51e76cc3cc67.tar.bz2
cpython-fe22dcaba7c5df856359b364fc3c51e76cc3cc67.zip
Issue #16787: Increase asyncore and asynchat default output buffers size, to
decrease CPU usage and increase throughput.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r--Lib/asynchat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index bb636ab7a5d..f055d63ba49 100644
--- a/Lib/asynchat.py
+++ b/Lib/asynchat.py
@@ -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