News Score: Score the News, Sort the News, Rewrite the Headlines

TL;DR - Arena-based parsers

This micro-book is about parsers, memory allocations and arenas. The parser is written in Rust, it parses code in Ruby. You don't need to know both though. The change that I'm describing here made a parser that I created in the past to go from 37MB/s to 80MB/s (which is roughly a 2x improvement) I was able to completely eliminate all heap allocations (the parser is written in Rust, so it runs in #[no_std] mode) Result of the parsing is located exclusively on arena, so the whole blob of underlyin...

Read more at iliabylich.github.io

© News Score  score the news, sort the news, rewrite the headlines