poky/bitbake/lib/bblayers
Robert Yang f738ed43e9 bitbake: utils.py: get_file_layer(): Improve performance
The following code costs a lot of time when there are lot of layers and recipes:

     for collection in collections:
         collection_res[collection] = d.getVar('BBFILE_PATTERN_%s' % collection) or ''

My build has more than 100 layers and 3000 recipes, which calls d.getVar() 300K
(3000 * 100) times and makes 'bitbake-layers show-recipes' very slow, add a
keyword argument to get_file_layer() can fix the problem, it can save about 90%
time in my build (6min -> 40s).

(Bitbake rev: f08a6601c9bb09622855d62e1cedb92fafd2f71d)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-10 13:49:21 +01:00
..
__init__.py bitbake: bitbake: Add initial pass of SPDX license headers to source code 2019-05-04 10:44:04 +01:00
action.py bitbake: bitbake: cooker: Split file collections per multiconfig 2020-06-10 12:30:01 +01:00
common.py bitbake: data_smart: Don't pass unneeded datastore 2020-03-24 22:01:03 +00:00
layerindex.py bitbake: layerindex: allow clones to be shallow 2020-02-19 11:26:12 +00:00
query.py bitbake: utils.py: get_file_layer(): Improve performance 2020-09-10 13:49:21 +01:00