; * admin/notes/tree-sitter/performance (Facts): Fix filling.

This commit is contained in:
Yuan Fu 2023-09-13 20:36:47 -07:00
parent 63766b49e2
commit b1291a2f84
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -3,7 +3,10 @@ TREE-SITTER PERFORMANCE NOTES -*- org -*-
* Facts
Incremental parsing of a few characters worth of edit usually takes
less than 0.1ms. If it takes longer than that, something is wrong. Theres one time where I found tree-sitter-c takes ~30ms to incremental parse. Updating to the latest version of tree-sitter-c solves it, so I didnt investigate further.
less than 0.1ms. If it takes longer than that, something is wrong.
Theres one time where I found tree-sitter-c takes ~30ms to
incremental parse. Updating to the latest version of tree-sitter-c
solves it, so I didnt investigate further.
The ranges set for a parser doesnt grow when you insert text into a
range, so you have to update the ranges every time before