Commit c31d0cb6 authored by Simon Glass's avatar Simon Glass
Browse files

patman: Use bytearray instead of string

If the process outputs a lot of data on stdout this can be quite slow,
since the bytestring is regenerated each time. Use a bytearray instead.
Signed-off-by: Simon Glass's avatarSimon Glass <>
parent 43332d88
......@@ -169,11 +169,11 @@ class Popen(subprocess.Popen):
if self.stdout:
stdout = b''
stdout = bytearray()
if self.stderr and self.stderr != self.stdout:
stderr = b''
combined = b''
stderr = bytearray()
combined = bytearray()
input_offset = 0
while read_set or write_set:
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