Beating the Fastest Lexer Generator in Rust
https://alic.dev/blog/fast-lexing [alic.dev]
2025-05-09 19:07
I was aware of the efficiency of state machine driven lexers, but most generators have one problem: they can’t be arbitrarily generic and consistently optimal at the same time. There will always be some assumptions about your data that are either impossible to express, or outside the scope of the generator’s optimizations. Either way, I was curious to find out how my hand-rolled implementation would fare.
source: L