Parsing Safely, from 500MB/s to 2GB/s
summary
A Rust implementation of an HTTP parser is optimized to increase throughput from ~500 MB/s to 2 GB/s while remaining safe and readable. The talk compares performance against hand-written C parsers, explains which parser-combinator patterns and low-level optimizations matter, and presents an actual Rust implementation with profiling data that justifies each change.
AI-written summary · about
chapters (5)
related talks
20mRust for Safer Protocol Development
15mBuilding Little Languages with Rust
36mWriting a Zero-Copy Database Parser from the Ground Up
36mSafe and fast parsers with Nom and Rust
43mSafe and fast parsers with Nom and Rust
34mMove fast and don't break things: High-performance networking in Rust
05mBuilding Efficient Web Scrapers
30mUnder a Microscope: Exploring Fast and Safe Rust for Biology
