Unbuffered I/O Can Make Your Rust Programs Much Slower

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • h264-reader

    Rust reader for H264 bitsream syntax

  • Recommended by whom?

    When you want to process stuff in bulk, it's better to use BufRead::fill_buf (reusing the BufRead's buffer) rather than copy into your own.

    For example, I wrote some code which basically skips some escape bytes. [1] It wraps a BufRead and is itself a BufRead. Its caller actually can read straight from the buffer you supply, skipping two layers of copying.

    [1] https://github.com/dholroyd/h264-reader/blob/60ed66dc4dbfe74...

  • json

    Strongly typed JSON library for Rust (by serde-rs)

  • For what it's worth, if you want the best performance out of Serde you have to use from_str or from_slice, regardless of if you pass a BufRead to it.

    https://github.com/serde-rs/json/issues/160

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts