diff options
author | Pascal Kuthe | 2022-11-11 01:47:12 +0000 |
---|---|---|
committer | GitHub | 2022-11-11 01:47:12 +0000 |
commit | bb5a122cdef79978f7ec770f30da914eee5bb9f3 (patch) | |
tree | 173dfdf79b566c8fad8862fdcc2714af4abc4f38 /.gitattributes | |
parent | e17ad2722a12ffd6ea3a42405ce6ab0ccb8c0486 (diff) |
improve performance of tree sitter query captures (for text object motions in particular) (#4707)
* add tree sitter match limit to avoid slowdowns for larger files
Affects all tree sitter queries and should speedup both
syntax highlighting and text object queries.
This has been shown to fix significant slowdowns with textobjects
for rust files as small as 3k loc.
* Apply suggestions from code review
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions