Aleksey Kladov c603b9043f feat: make hightlighting linear
In https://youtu.be/qvIZZf5dmTE, we've noticed that AstIdMap does a
linear lookup when going from SyntaxNode to Id. This leads to
accidentally quadratic overall performance. Replace linear lookup with a
O(1) hashmap lookup.

Future work: don't duplicate `SyntaxNodePtr` in `AstIdMap` and switch to
"call site dependency injection" style storage (eg, store a
`HashSet<ErasedFileAstId>`).

See the explanation of the work here on YouTube
https://youtu.be/wvEgymUm7cY :-)
2021-12-05 15:32:39 +03:00
..
2021-11-30 14:07:39 +00:00
2021-12-03 23:52:28 +00:00
2021-12-04 15:08:43 +02:00
2021-12-04 18:18:09 +01:00
2021-12-04 15:14:31 +02:00
2021-11-29 11:13:39 +00:00
2021-12-04 15:17:30 +02:00