diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-02 09:02:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-03 10:12:42 +0000 |
commit | 34e4eebc32c4836fc40098e90b17c00f51398967 (patch) | |
tree | 20f3ba43c0341cbed8b454c92d60e0fc326b9d50 /scripts/contrib/convert-srcuri.py | |
parent | 791d6e63be09b361dd3397707a0507399b9a9ce7 (diff) | |
download | poky-34e4eebc32c4836fc40098e90b17c00f51398967.tar.gz |
bitbake: lib/bb: Fix string concatination potential performance issues
Python scales badly when concatinating strings in loops. Most of these
references aren't problematic but at least one (in data.py) is probably
a performance issue as the issue is compounded as strings become large.
The way to handle this in python is to create lists which don't reconstruct
all the objects when appending to them. We may as well fix all the references
since it stops them being copy/pasted into something problematic in the future.
This patch was based on issues highligthted by a report from AWS Codeguru.
(Bitbake rev: d654139a833127b16274dca0ccbbab7e3bb33ed0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/convert-srcuri.py')
0 files changed, 0 insertions, 0 deletions