Crate fahtsex

source ·
Expand description

Extremely useless but fast SIMD functions for dealing with hex

Fahtsex requires SSSE3-compatible cpu or better: use RUSTFLAGS="-C target-cpu=native" if CPU is supported and you don’t intend to distriute the binaries, or use something like RUSTFLAGS="-C target-feature=+<arch>" where <arch> is one of ssse3, avx, avx2 or something in between (idk, I, the docwriter, have not tested it on anything except these three)

Use cargo bench to see what the speed difference on your machine is

Functions§

  • Parses SHA1 hash written as 40 hex digits in ASCII without checking format
  • Parses SHA1 hash written as 40 hex digits in ASCII with checking string size which should be exactly 40 bytes