You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 33842bf
Browse filesBrowse the repository at this point in the historyBrowse files
Speed up remaining_tokens() with a tight scan loop
Tokenizing a whole statement routed every token through the pull iterator
(next_token -> produce -> scan_lexeme -> read_next_token -> enqueue_token),
adding ~4 method calls plus token-queue bookkeeping per token over a plain
scan-and-emit loop. Give remaining_tokens() a tight fast path that emits the
common single-token lexemes inline and delegates only the rare multi-token
ones (@, WITH ROLLUP, end markers) to the buffered producers. The pull API is
unchanged and the output is byte-identical; ~24% faster (no JIT) / ~16% (JIT)
end-to-end over the MySQL server corpus.
0 commit comments