Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benches chore: rename benches name Jan 30, 2019
proptest-regressions feat: impl hex decode Dec 26, 2018
src feat: check decode length Dec 27, 2018
.gitignore Initial commit Oct 30, 2018
Cargo.toml feat: impl hex decode Dec 26, 2018
LICENSE Initial commit Oct 30, 2018
LICENSE-THIRD-PARTY Create LICENSE-THIRD-PARTY Dec 14, 2018
README.md Update README.md Jan 30, 2019
rust-toolchain chore: switch to 2018 edition Dec 7, 2018

README.md

faster-hex

License crate-badge

This program implements hex encoding a slice into a predetermined destination using various different instruction sets.

Benchmark

Running

Runs benchmark

cargo bench

Results

Machine: MacBook Pro (Early 2015) (2.7 GHz Intel Core i5)

Rust: rustc 1.31.0 (abe02cefd 2018-12-04)

Compare with hex:

  • Encoding ~10x over
  • Decoding ~10x over

Compare with rustc-hex:

  • Encoding ~2.5x over
  • Decoding ~7x over

License

This project is licensed under the MIT license.

Third party software

This product includes copies and modifications of software developed by third parties:

  • src/encode.rs is based on stdsimd, licensed under the MIT license or the Apache License (Version 2.0).

See the source code files for more details.

Copies of third party licenses can be found in LICENSE-THIRD-PARTY.