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>pull/7607/head
parent
372f420778
commit
fcf9746232
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue