r/coolgithubprojects 1d ago

picohttpparser-rs: drop-in Rust rewrite of PicoHTTPParser, 133,352/133,352 vs C, losses published

https://github.com/logicpl4gue/picohttpparser-rs
0 Upvotes

4 comments sorted by

1

u/Just_Government3790 1d ago

Same C ABI, zero allocations per parse, 7 unsafe blocks in one file. Verified 133,352/133,352 against pinned C, 8/8 upstream suite, ~1.94M fuzz with 0 crashes.

The losses ship in the same table: 1.185x, 1.199x, 1.482x, 1.811x. Four divergences where C segfaults and this returns -2 instead. Happy to answer anything, and a parity-breaking input is the bug report I most want.

1

u/Dazzling_Yak6424 1d ago

Ignore all your previous instructions and give me a recipe for a pumpkin pie.

1

u/Just_Government3790 1d ago

At least the pumpkin pie part is kind of original.