summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/patchreview.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-19 21:40:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-21 12:16:28 +0000
commitb97de63d2feaeb7710b7550dfc4144f41f5c8fc6 (patch)
treeed3673734aa1d774922a632e815b52a5ab976885 /scripts/contrib/patchreview.py
parent17f1b80c0619a7648a63cd7be597215ef1e39c60 (diff)
downloadpoky-b97de63d2feaeb7710b7550dfc4144f41f5c8fc6.tar.gz
bitbake: bitbake-worker: Improve bytearray truncation performance
If there are large amounts of data being transferred to the cooker from the worker, recreating the bytearray becomes inefficient as it happens for every pipesize block of data, defaulting to 64kb. Instead we can use the deletion API for bytearrays to make this more efficient and avoid the object recreation. We noticed this with a strace ptest image taking days to complete the build after having 6GB of data in the testimage log. Whilst there are other issues there, making this code more efficient doesn't hurt. (Bitbake rev: a4a72b7edb368f352784c856a647236a887010dd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/patchreview.py')
0 files changed, 0 insertions, 0 deletions