Skip to content

Fix performance issues for bitbake-layers show-recipes (Saves 95% time)

Robert Yang bitbake-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cooker.py: Save prioritized BBFILES to BBFILES_PRIORITIZEDbitbake/lib/bb/cooker.py+1 -10 replies
2/3utils.py: get_file_layer(): Exit the loop when file is matchedbitbake/lib/bb/utils.py+3 -20 replies
3/3utils.py: get_file_layer(): Improve performancebitbake/lib/bb/utils.py bitbake/lib/bblayers/query.py+19 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] Fix performance issues for bitbake-layers show-recipes (Saves 95% time)

* V3
- Define self.collection_res in an init function

* V2
- Save prioritized BBFILES to BBFILES_PRIORITIZED

- "bitbake-layers show-recipes" requires 14 min to run which was too slow, these 3 patches can make it run in 40s which can save 95% time.

- It becomes slow since the following commit:
(85e03a64: tinfoil: Simplify remote datastore connections)

* V1
- Initial version

The following changes since commit c25309ecde4e7ff81fb74a74fe06991dcdbbbfc8:

bitbake: cooker: Ensure parser worker signal handlers are default (2020-09-08 10:18:02 +0100)

are available in the Git repository at:

git://git.yoctoproject.org/poky-contrib rbt/bblayers
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rbt/bblayers

Robert Yang (3):
cooker.py: Save prioritized BBFILES to BBFILES_PRIORITIZED utils.py: get_file_layer(): Exit the loop when file is matched utils.py: get_file_layer(): Improve performance

 bitbake/lib/bb/cooker.py      |  2 +-
 bitbake/lib/bb/utils.py       | 17 ++++++++++++-----
 bitbake/lib/bblayers/query.py | 12 ++++++++++--
 3 files changed, 23 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1