Fabian Giesenrygorous@mastodon.gamedev.place
Dec 1, 2026, 9:17 AM@nothings @pervognsen (I guess add it to the list of "multi-pass is good, actually".)
@nothings @pervognsen (I guess add it to the list of "multi-pass is good, actually".)
@rygorous Yep, my current fastest non-SIMD lexer approach is already multipass in two passes, the first pass uses a state machine to divide the stream into tokens of known types (1 mispredict at end of each token), and the second pass isn't actually a continuous pass, it iterates over each type of token (or really, each state machine final state) and does type-specific processing in a series of tight loops per type (avoids branch mispredict switching on token type). Def inspired by Oodle SIMD.