Debian Codegraph @

/

debian rust-itoap 1.0.1-1debian librust-itoap-dev debian librust-itoap+alloc-dev debian librust-itoap+default-dev debian librust-itoap+simd-dev debian librust-itoap+std-dev debian librust-itoap-1-dev debian librust-itoap-1+alloc-dev debian librust-itoap-1+default-dev debian librust-itoap-1+simd-dev debian librust-itoap-1+std-dev debian librust-itoap-1.0-dev debian librust-itoap-1.0+alloc-dev debian librust-itoap-1.0+default-dev debian librust-itoap-1.0+simd-dev debian librust-itoap-1.0+std-dev debian librust-itoap-1.0.1-dev debian librust-itoap-1.0.1+alloc-dev debian librust-itoap-1.0.1+default-dev debian librust-itoap-1.0.1+simd-dev
2 more… debian librust-itoap-1.0.1+std-dev cargo itoap 1.0.1
debianjsonmakefilemarkdownrustrustrust-c-abishelltomlyaml 22 files · 203 symbols
View dependency graph

Depends on

README (full)

Welcome to itoap 👋

Version docs Tests codecov Rust 1.36 License: MIT

This crate provides even faster functions for printing integers with default format than itoa crate.

Comparison with itoa crate

If you want to write integers in decimal format to String, Vec or any other contiguous buffer, then this crate is the best choice.

If you want to write integers to a std::io::Write or std::fmt::Write, itoa crate and itoap crate shows almost same performance for some types, but itoap is generally faster.

The implementation is based on the sse2 algorithm from itoa-benchmark repository. While itoa crate writes integers from last digits, this algorithm writes from first digits. It allows integers to be written directly to the buffer. That's why itoap is faster than itoa.

Benchmark result

Benchmark program was executed under the following environment:

Hardware/SoftwareVersion
CPU model nameIntel(R) Core(TM) i5-8265U CPU @ 1.60GHz
CPU micro architectureSky Lake
Standard libc implementationglibc 2.31.0
rustc1.51.0-nightly (368275062 2021-02-02)

Benchmark result

:warning: performance of itoa crate highly depends on the CPU architecture and libc implementation.

Author

👤 Ryohei Machida

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2014-2016 Milo Yip, 2020 Ryohei Machida.

This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

dir .github/
dir benches/
dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file Cargo.toml
file Cargo.toml.orig
file LICENSE
file README.md
file bench.png
file codecov.yml
file rustfmt.toml