From 60fd81dc0f89c20d135c16ecd8e5c6ad81eb3c0c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 29 Jan 2014 17:59:42 +0200 Subject: [PATCH] TransRead: use a 1M buffer size for the ssh pipe Set buffer size for the SSH pipe to be 1M. Frankly, I am not 100% sure if this matters, it looks like it makes reading the file over ssh a bit faster. Change-Id: If91f6589db2e80af4bd6afc994ad1553a1109b3e Signed-off-by: Artem Bityutskiy --- bmaptools/TransRead.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bmaptools/TransRead.py b/bmaptools/TransRead.py index 6cf1e4b..50b51e7 100644 --- a/bmaptools/TransRead.py +++ b/bmaptools/TransRead.py @@ -418,6 +418,7 @@ class TransRead(object): # host command = "test -f " + path + " && test -r " + path child_process = subprocess.Popen(popen_args + [command], + bufsize=1024*1024, stdout=subprocess.PIPE) child_process.wait() if child_process.returncode != 0: -- 2.34.1