whitfin / runiq

An efficient way to filter duplicate lines from input, à la uniq.
MIT License
204 stars 23 forks source link

Suggestion: Use a Rust implementation of xxHash #9

Closed mardukbp closed 3 years ago

mardukbp commented 4 years ago

Depending on a C library complicates the compilation, since it requires that the Clang compiler be present.

xxHash has already been implemented in Rust in the twox-hash crate.

Using it would probably make it easy to publish pre-built binaries for macOS, Linux and Windows, which would improve the usability of runiq :)

mardukbp commented 4 years ago

The zero-xxhash crate can be used in place of xxhash2 with very little effort.