summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2014-04-28 22:21:24 -0700
committerAndy McCurdy <andy@andymccurdy.com>2014-04-28 22:22:32 -0700
commit1851035084f49c483d74b41ffc79a50d019e97c5 (patch)
treeaf1dc6eb228d1aebb86647403f8085dd5027e45e /redis/connection.py
parent24e9f1147b168ac139ece8d20b5be82583e87731 (diff)
downloadredis-py-1851035084f49c483d74b41ffc79a50d019e97c5.tar.gz
tiny benchmark framework and a benchmark to determine the optimal number of bytes to read from a socket
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 5017b55..3364364 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -324,7 +324,7 @@ class Connection(object):
def __init__(self, host='localhost', port=6379, db=0, password=None,
socket_timeout=None, encoding='utf-8',
encoding_errors='strict', decode_responses=False,
- parser_class=DefaultParser, socket_read_size=8192):
+ parser_class=DefaultParser, socket_read_size=65536):
self.pid = os.getpid()
self.host = host
self.port = port
@@ -501,7 +501,7 @@ class UnixDomainSocketConnection(Connection):
def __init__(self, path='', db=0, password=None,
socket_timeout=None, encoding='utf-8',
encoding_errors='strict', decode_responses=False,
- parser_class=DefaultParser, socket_read_size=8192):
+ parser_class=DefaultParser, socket_read_size=65536):
self.pid = os.getpid()
self.path = path
self.db = db