~taiite/dnfactor

uniq for domain names
use hashmap for x1.36 speed
use smol_str for x1.12 speed
more preprocessing of input domains

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~taiite/dnfactor
read/write
git@git.sr.ht:~taiite/dnfactor

You can also use your local clone with git send-email.

#dnfactor

Factorizes domains, such as

doubleclick.net
pubads-g-doubleclick-net.cdn.ampproject.org
ff.doubleclick.net

becomes

doubleclick.net
pubads-g-doubleclick-net.cdn.ampproject.org

#Building

Use cargo build.

#Usage

dnfactor <blocklist.txt

or

dnfactor blocklist.txt blocklist2.txt blocklist3.txt

#Contributing

Ask questions and send patches on the mailing list: https://lists.sr.ht/~taiite/public-inbox

File bugs on the bug tracker: https://todo.sr.ht/~taiite/protodump