Welcome to itoap 👋
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, but itoap
outputs slightly larger binary.
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
.
Author
👤 Ryohei Machida
- Github: @Kogia-sima
🤝 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