summaryrefslogtreecommitdiffstats
path: root/lib/bblayers
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-11 13:43:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-11 14:04:08 +0000
commit9298d08b7dcf9d79f54536f87686d65c4ad7deb9 (patch)
treeed54491df9a0a3b752e3b2fe7daa468447775cde /lib/bblayers
parentab9d26c4847a062cadaae5fb8caac0ead5f958db (diff)
downloadbitbake-9298d08b7dcf9d79f54536f87686d65c4ad7deb9.tar.gz
event: Fix multiconfig event handler change performance regressions
There were two issues in this code, firstly the code could stack duplicates in the variable, secondly, calling "if data" caused the datastore to compute len(data) which is comparitively expensive. Checking "if data is not None" is much much faster/cheaper. The issue was clear from "bitbake -p -P" output where the time in register() showed large amounts of time in the __len__ function of the datastore. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bblayers')
0 files changed, 0 insertions, 0 deletions