Skip to content

Commit

Permalink
Dramatically improve the speed of finding the intersection.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenBlack committed Apr 21, 2020
1 parent 97ec96a commit cf98cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func main() {
fmt.Println(hf2.Summary("Compared hosts file"))
}

intersection := intersect.Simple(hf1.Domains, hf2.Domains)
intersection := intersect.Hash(hf1.Domains, hf2.Domains)

if intersectionList {
// for now, unceremoniously dump the intersecting domains.
Expand All @@ -424,7 +424,7 @@ func main() {
fmt.Println(hf2.Summary("Compared hosts from clipboard"))
}

intersection := intersect.Simple(hf1.Domains, hf2.Domains)
intersection := intersect.Hash(hf1.Domains, hf2.Domains)

if intersectionList {
// for now, unceremoniously dump the intersecting domains.
Expand Down

0 comments on commit cf98cbe

Please sign in to comment.