Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Optimize tree-sitter HighlightIterator when there are many injections #18435

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

maxbrunsfeld
Copy link
Contributor

In the course of addressing atom/language-javascript#600, I noticed that when there are a large number of language injections in a large file, highlighting operations and scope descriptor queries become very slow. Specifically, this line of code.

In atom/text-buffer#305, I made it possible to avoid examining every single injection when seeking a highlight iterator. This PR takes advantage of that capability.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant