diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-20 07:53:40 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-03-01 16:40:58 +0200 |
commit | efd4193afb3ed5635909f2b88224c541aad978e7 (patch) | |
tree | 25f54f0886acd0b63c9a3ac6fbde064a200c3838 /.mailmap | |
parent | 0ce21ac78a09e70735ba63e873ac8587a41af140 (diff) | |
download | meson-master.zip meson-master.tar.gz meson-master.tar.bz2 |
self.post is only ever appended to on the right hand. However,
it is then reversed twice in flush_pre_post(), by using "for a in
reversed.post()" and appendleft() within the loop. It would be tempting
to use appendleft() in __iadd__ to avoid the call to reversed(), but that
is not a good idea because the loop of flush_pre_post() is part of a slow
path. It's rather more important to use a fast extend-with-list-argument
in the fast path where needs_override_check if False.
For clarity, and to remove the temptation, make "post" a list instead
of a deque.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions