diff options
author | Ross Burton <ross.burton@arm.com> | 2024-10-10 17:06:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-11 12:17:03 +0100 |
commit | 91ba10c7a30e2363e6fc96c2b982f6686e94ab00 (patch) | |
tree | 43e5726fdf5f09771cff6b6559aff05e7cf50f29 /scripts/lib/scriptutils.py | |
parent | 5e2787fe6dc2d28267ab51c480d45a0c1b4d9a64 (diff) | |
download | poky-91ba10c7a30e2363e6fc96c2b982f6686e94ab00.tar.gz |
oe/elf: don't regenerate machine data on every call
Every time oe.elf.machine_dict() is called a large dictionary is created
and returned. However, the "arch" package_qa test will call this method
for every binary in a package, which results in a lot of dictionary
creation.
Concrete exmaple: in running ltp:do_package_qa, the arch test takes 25%
of the runtime, and opitimising the machine_dict() call to cache the
generated dictionary reduces the runtime from 57s to 44s.
(From OE-Core rev: dca4455aa4f870bad900a0214c4e95e09a055295)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions