diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-17 15:24:52 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-18 08:09:42 +0200 |
commit | b7a4c0793ceab4fcde64098e164c36f8fbd48b64 (patch) | |
tree | d75585c2db0a37f7884bf049b3c6af023237222a /mesonbuild/backend/vs2019backend.py | |
parent | 7092efabb5a0488b694418c823463048ddbb310c (diff) | |
download | meson-b7a4c0793ceab4fcde64098e164c36f8fbd48b64.zip meson-b7a4c0793ceab4fcde64098e164c36f8fbd48b64.tar.gz meson-b7a4c0793ceab4fcde64098e164c36f8fbd48b64.tar.bz2 |
arglist: optimize flush_pre_post
pre_flush_set and post_flush_set are almost always empty, so we can use
extend() instead of a for...in loop to add the previous elements of
self._container.
We can also skip the conversion from deque to list since pre_flush is
always appended on the right side.
On a QEMU build the time spent in flush_pre_post goes from 1.4 to 0.5
seconds.
Diffstat (limited to 'mesonbuild/backend/vs2019backend.py')
0 files changed, 0 insertions, 0 deletions