diff options
author | Blaž Hrastnik | 2021-12-01 04:08:20 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-12-01 04:08:20 +0000 |
commit | 259678585c3410044683bf4d2619b2d024a04514 (patch) | |
tree | 207a827dded75a761bdca62d1784f1fd3e21676b /helix-view/src/view.rs | |
parent | 7bbf4c5b0675bb794bd88c070472773bd7d7e6bf (diff) |
ui: Optimize tree-sitter style lookups
Tree sitter returns an index referring to the position of the scope in
the scopes array. We can use that same index to avoid a hashmap lookup
and instead store the styles in an array.
This currently stores the styles in both a map and an array because the
UI still uses hashmap lookups, but it's a reasonable tradeoff.
Diffstat (limited to 'helix-view/src/view.rs')
0 files changed, 0 insertions, 0 deletions