To compress the bundled wordlist, I've used include-flate's flate! macro as a replacement for include_str!.
This will compress the wordlists during compilation.
Size comparison for "toipe"
I'm currently using Arch Linux with rust stable, so your results may vary.
Total wordlist size: 367.3KiB (380,167 Bytes)
Binary size using include_str!: 1.4MiB (1,452,728 Bytes)
Binary size using flate!: 1.2 MiB (1,268,408 Bytes)
I've tested both binaries and I couldn't find any performance hits (compilation & runtime).
Hey! I came across your project and figured I'd take a crack some of the issues listed. This PR should solve issue: https://github.com/Samyak2/toipe/issues/31
To compress the bundled wordlist, I've used include-flate's
flate!
macro as a replacement forinclude_str!
. This will compress the wordlists during compilation.Size comparison for "toipe"
I'm currently using Arch Linux with rust stable, so your results may vary.
367.3KiB
(380,167 Bytes)include_str!
:1.4MiB
(1,452,728 Bytes)flate!
:1.2 MiB
(1,268,408 Bytes)I've tested both binaries and I couldn't find any performance hits (compilation & runtime).