poky/bitbake/lib/bb
Richard Purdie 511d3e23f5 bitbake: utils: Optimise signal/sigmask performance
Running "time bitbake -pP idle" with a valid cache shows around 800,000
calls to enum creation from python's signal.py. We don't care about this
overhead and it adversely affects cache load time quite badly.

Try and use _signal directly, falling back to signal, which avoids
this overhead we don't need and makes cache loading much faster.

(Bitbake rev: 982645110a19ebb94d519926a4e14c8a2a205cfd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ee5fce67ce35b025c68aa61e2e758903269ee346)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-08-04 07:55:06 -07:00
..
asyncrpc bitbake: asyncrpc: Use client timeout for websocket open timeout 2024-10-30 08:30:00 -07:00
compress bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
fetch2 bitbake: gcp.py: remove slow calls to gsutil stat 2025-06-11 08:17:34 -07:00
parse bitbake: ast: Change deferred inherits to happen per recipe 2025-06-11 08:17:34 -07:00
pysh bitbake: pyshyacc: allow double COMMA statements 2020-07-12 11:53:00 +01:00
server bitbake: process/server: Fix typo 2024-02-10 15:25:22 +00:00
tests bitbake: bitbake: runqueue: Verify mcdepends are valid 2025-08-04 07:55:06 -07:00
ui bitbake: ui/knotty: respect NO_COLOR & check for tty; rename print_hyperlink => format_hyperlink 2025-01-24 07:59:38 -08:00
__init__.py bitbake: bb: Use namedtuple for Task data 2024-06-06 06:53:49 -07:00
acl.py bitbake: lib/bb: Add xattr and acl libraries 2023-08-24 16:49:38 +01:00
build.py bitbake: build: Make python output print to stdout when running with -v (verbose) 2023-03-21 22:44:00 +00:00
cache_extra.py
cache.py bitbake: cache: Simplify virtualfn2realfn() 2023-11-23 12:06:06 +00:00
checksum.py bitbake: checksum: Allow spaces in URI filenames 2022-04-14 09:48:33 +01:00
codeparser.py bitbake: codeparser: Skip non-local functions for module dependencies 2024-07-26 07:43:46 -07:00
command.py bitbake: cooker: Make cooker 'skiplist' per-multiconfig/mc 2025-01-24 07:59:38 -08:00
cooker.py bitbake: cooker: Make cooker 'skiplist' per-multiconfig/mc 2025-01-24 07:59:38 -08:00
cookerdata.py bitbake: cookerdata: Be consistent with what type bb_data represents 2023-11-23 12:06:06 +00:00
COW.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
daemonize.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
data_smart.py bitbake: data_smart.py: clear expand_cache in _setvar_update_overridevars 2025-03-08 06:22:56 -08:00
data.py bitbake: codeparser/data: Ensure module function contents changing is accounted for 2024-07-26 07:43:46 -07:00
event.py bitbake: event/utils: Avoid deadlock from lock_timeout() and recursive events 2025-03-15 06:40:07 -07:00
main.py bitbake: bitbake: improve descriptions of '-S printdiff' 2024-03-22 16:26:45 +00:00
methodpool.py
monitordisk.py bitbake: Fix disk space monitoring on cephfs 2023-08-25 07:55:34 +01:00
msg.py bitbake: Remove custom exception backtrace formatting 2024-12-06 05:50:24 -08:00
namedtuple_with_abc.py bitbake: lib: fix most undefined code picked up by pylint 2020-08-25 18:14:53 +01:00
persist_data.py bitbake: persist_data: close connection in SQLTable __exit__ 2024-12-06 05:50:24 -08:00
process.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
progress.py bitbake: progress: Fix typo "wherever" 2022-02-20 16:45:25 +00:00
providers.py bitbake: providers: use local variable for packages_dynamic pattern 2022-04-19 14:15:09 +01:00
remotedata.py bitbake: tinfoil: Simplify remote datastore connections 2020-03-24 22:01:03 +00:00
runqueue.py bitbake: bitbake: runqueue: Verify mcdepends are valid 2025-08-04 07:55:06 -07:00
siggen.py bitbake: siggen: Enable batching of unihash queries 2024-06-06 06:53:49 -07:00
taskdata.py bitbake: lib/bb: Replace "abort" usage in task handling 2022-02-21 23:37:26 +00:00
tinfoil.py bitbake: cooker: Make cooker 'skiplist' per-multiconfig/mc 2025-01-24 07:59:38 -08:00
utils.py bitbake: utils: Optimise signal/sigmask performance 2025-08-04 07:55:06 -07:00
xattr.py bitbake: lib/bb: Add xattr and acl libraries 2023-08-24 16:49:38 +01:00