# Fast I/O in Rust

**URL:** <https://users.rust-lang.org/t/fast-i-o-in-rust/61714>\
**Category:** help\
**Created:** [June 30, 2021, 3:34am UTC](https://users.rust-lang.org/t/fast-i-o-in-rust/61714 "2021-06-30T03:34:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![BurntSushi](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/burntsushi/32/135_2.png) [@BurntSushi](https://users.rust-lang.org/u/BurntSushi)\
**Post date:** [June 30, 2021, 4:14pm UTC](https://users.rust-lang.org/t/fast-i-o-in-rust/61714/4 "2021-06-30T16:14:30Z")

</div>

With respect to the fastest way to iterate over lines, depending on your requirements, the default approach in `std` is likely not the fastest. The [`bstr` crate has some routines for that](https://docs.rs/bstr/0.2.16/bstr/io/trait.BufReadExt.html#method.for_byte_line), which will get you pretty close to an optimal generic answer for that problem.

---

_[View the full topic](https://users.rust-lang.org/t/fast-i-o-in-rust/61714)._
