Skip to content
Commit 8ca6ac1d authored by Lucas De Marchi's avatar Lucas De Marchi
Browse files

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
parent 363d2899
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment