Do not hash twice
Sets already use the __hash__() method of each object to decide if an object is in it. When we use the sha1 we are therefore hashing twice. The impact is on performance. Following the performance before and after this patch to parse the entire Linux Kernel tree with a big exclude list. Before: real 2m20.959s user 2m16.888s sys 0m1.386s After: real 1m35.169s user 1m28.719s sys 0m1.354s
Loading
Please register or sign in to comment