summaryrefslogtreecommitdiffstats
path: root/scripts/lib/build_perf/html.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-16 14:44:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-18 13:17:10 +0000
commitcf72cec468f0fba30aac13e5765cab4aa8ea50b2 (patch)
treebb7b3f0de2e4b0fbe30bebe3be7ba495437db561 /scripts/lib/build_perf/html.py
parentb58049b4e70f896ec60f3f35c28e55b15db3039c (diff)
downloadpoky-cf72cec468f0fba30aac13e5765cab4aa8ea50b2.tar.gz
bitbake: codeparser: Avoid log bufer overhead in cache case
Creating the new log instances triggers a lot of python logging overhead in a commonly called function (about 600,000 for parsing OE-Core). We only need the log functionality if we're parsing, not if we just hit from the cache. Therefore defer the log setup overhead until we know it is a cache miss. Whilst this complicates the code slightly, the performance gain is worth it as for parsing OE-Core we drop 60 million funciton calls (from 225 overall). (Bitbake rev: ac868167ad854f9bb32dcb2e63528870547805a7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/build_perf/html.py')
0 files changed, 0 insertions, 0 deletions