projects
/
tools
/
bmap-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5382022
)
TransRead: use a 1M buffer size for the ssh pipe
author
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Wed, 29 Jan 2014 15:59:42 +0000
(17:59 +0200)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Wed, 29 Jan 2014 15:59:42 +0000
(17:59 +0200)
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 <artem.bityutskiy@intel.com>
bmaptools/TransRead.py
patch
|
blob
|
history
diff --git
a/bmaptools/TransRead.py
b/bmaptools/TransRead.py
index 6cf1e4b896f8f8d385dc1050b87fe3b00a724cbc..50b51e7ca809050acb758b9e292b79138e34dd09 100644
(file)
--- 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: