Ps
PreSyntax
5,000-Line TS Lexer
Bit-packed Uint32 token spans + Uint8 end-of-line state early-exit
PreSyntax (Incremental)
Full-File Re-Tokenize
Single-Line Edit
Toggle /* Block Comment
Rapid Typing Stress
Keystroke Latency
—
active mode
Lines Re-Lexed
0 / 5,000
dirty slice: —
Speedup vs Full
—
Pre vs Full baseline
Cold Prepare (5k)
—
0 packed Uint32 tokens
Memory Footprint
—
Uint32 spans + Uint8 states
Edit Latency (ms)
PreSyntax
Full Re-Lex
16.6ms (60fps)
Line 12
EOL State:
0:NORM
1:BLK/*
2:TPL`
engine-kernel.ts
5,000 lines · virtualized viewport
Ready — click any line to edit