-
Notifications
You must be signed in to change notification settings - Fork 0
Slowness #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have a potential solution for the theme-colors issue, but it will likely have a computational cost so I'm trying to figure out where performance can be improved and considering if we need to get creative with moving more of the computation inside of Wasm/C++ |
The |
Hmm do you think Textmate is using something other than setDecorations()? |
vscode-textmate produces binary tokens that represent the current color and font style of the text. vscode then maps those tokens to css classes. |
So they're effectively just toggling a css class, and the text nodes in the DOM are being split up based on the textmate scopes? The DOM changes might be expensive but the CSS classes would be a significant advantage over |
Looks like VS Code is taking this issue seriously microsoft/vscode#77140 That issue is likely the main blocking issue for the tree-sitter right now |
Fixed an exception that crashed the extension due to invalid language.
Uh oh!
There was an error while loading. Please reload this page.
@georgewfraser @EvgeniyPeshkov
This issue isn't anything new, it takes a bit for the colors to be updated by the extension. I'm making this issue because I've been thinking more about the tree sitter and I'm not sure where the slowness is coming from. The parser should be much faster than Textmate, and it seems you guys are updating the tree (rather than re-parsing the whole thing on every change).
Do you guys know if it has to do with how often the event occurs (not triggered fast enough), or if it's a decoration issue, or something related to iterating over the nodes?
The text was updated successfully, but these errors were encountered: