Commit 49db4125 authored by David Wilson's avatar David Wilson

issue #139: core: bump CHUNK_SIZE from 16kb to 128Kb

Reduces the number of IO loop iterations required to receive large
messages at a small cost to RAM usage.

Note that when calling read() with a large buffer value like this,
Python must zero-allocate that much RAM. In other words, for even a
single byte received, 128kb of RAM might need to be written.
Consequently CHUNK_SIZE is quite a sensitive value and this might need
further tuning.
parent 8e2b07a5
......@@ -67,7 +67,7 @@ ALLOCATE_ID = 104
SHUTDOWN = 105
LOAD_MODULE = 106
CHUNK_SIZE = 16384
CHUNK_SIZE = 131072
_tls = threading.local()
......
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