Samyak2 / toipe

yet another typing test, but crab flavoured
MIT License
596 stars 31 forks source link

Compress bundled wordlists #42

Closed B0ney closed 2 years ago

B0ney commented 2 years ago

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 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.

I've tested both binaries and I couldn't find any performance hits (compilation & runtime).

Samyak2 commented 2 years ago

Thank you for contributing! I appreciate your patience too :heart: