From: Artem Bityutskiy Date: Wed, 29 Jan 2014 15:59:42 +0000 (+0200) Subject: TransRead: use a 1M buffer size for the ssh pipe X-Git-Tag: v3.2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60fd81dc0f89c20d135c16ecd8e5c6ad81eb3c0c;p=tools%2Fbmap-tools.git 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 --- 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: