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
lines inside the viewport are retokenized everytime the viewport changes (scrolling etc)
this causes many lag spikes when scrolling over massively long lines that don't tokenize fully
this is different to when it was synchronous, as it would try to tokenize the line once and not try again until the user types
me just scrolling normally at the same speed in both videos
notice the lag spikes with async on and the flickering of colours at the bottom section of the document
test file is the builtin c extension c.tmLanguage.json file
it is a single line of 72138 characters long
vscode manages to tokenize roughly 40,000 chars before giving up
roughly 45,500 chars when async is enabled
Async.Off-1.mp4Async.On-1.mp4
I don't think this is true, it wouldn't tokenize lines only once when it used heuristically computed states to tokenize them.
I don't understand
is when multiple lines are present in the viewport?
Activity
IllusionMH commentedon Apr 8, 2022
At first I was thinking it's about
.tsextension that is treated as Video Transport Stream (TS) 😆[-]Movie tokenization to a web worker[/-][+]Move tokenization to a web worker[/+]RedCMD commentedon Mar 16, 2023
lines inside the viewport are retokenized everytime the viewport changes (scrolling etc)
this causes many lag spikes when scrolling over massively long lines that don't tokenize fully
this is different to when it was synchronous, as it would try to tokenize the line once and not try again until the user types
hediet commentedon Mar 16, 2023
I don't think this is true, it wouldn't tokenize lines only once when it used heuristically computed states to tokenize them.
RedCMD commentedon Mar 17, 2023
me just scrolling normally at the same speed in both videos
notice the lag spikes with async on and the flickering of colours at the bottom section of the document
test file is the builtin c extension
c.tmLanguage.jsonfileit is a single line of 72138 characters long
vscode manages to tokenize roughly 40,000 chars before giving up
roughly 45,500 chars when async is enabled
Async.Off-1.mp4
Async.On-1.mp4
I don't understand
is when multiple lines are present in the viewport?