diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-17 15:27:13 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-18 08:11:25 +0200 |
commit | fcf9746232efd03970c963e9e5207e1ec8dc99fd (patch) | |
tree | 81af5a845bd61a8e884022cfe73e7c125163db76 /docs/markdown/Using-the-WrapDB.md | |
parent | 372f420778f8f4b55b207f9a6be2c20e2bd22c38 (diff) | |
download | meson-fcf9746232efd03970c963e9e5207e1ec8dc99fd.zip meson-fcf9746232efd03970c963e9e5207e1ec8dc99fd.tar.gz meson-fcf9746232efd03970c963e9e5207e1ec8dc99fd.tar.bz2 |
build: optimize extract_objects
extract_objects is repeatedly looking up files in self.sources, which is a list.
Convert it to a set beforehand so that the lookup is O(1).
On a QEMU build, the time spent in extract_objects goes from 3.292s to 0.431s.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/Using-the-WrapDB.md')
0 files changed, 0 insertions, 0 deletions