diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-17 15:39:50 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-18 08:11:25 +0200 |
commit | 372f420778f8f4b55b207f9a6be2c20e2bd22c38 (patch) | |
tree | 51994fdd8fd79c4efc0dddc982750b1fcdf4a011 /mesonbuild/build.py | |
parent | 3d4fb02e2907b2532333fdb5eefe6335c7cd94c4 (diff) | |
download | meson-372f420778f8f4b55b207f9a6be2c20e2bd22c38.zip meson-372f420778f8f4b55b207f9a6be2c20e2bd22c38.tar.gz meson-372f420778f8f4b55b207f9a6be2c20e2bd22c38.tar.bz2 |
File: precompute hash
Most files are going to be looked up into a set or dictionary. Precompute
the hash so that we only need to do so once and we can also use it to
quickly weed out unequal objects.
On a QEMU build, the time spent in __eq__ and __hash goes respectively
from 3.110s to 2.162s and from 0.648s to 0.299s. Even larger gains are
obtained by the next patch.
Diffstat (limited to 'mesonbuild/build.py')
0 files changed, 0 insertions, 0 deletions