You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve performance by caching conversion to NormalizedUri (#384)
* Cache conversion to NormalizedUri from NormalizedFilePath
This conversion is quite expensive to repeat multiple times. Therefore
we cache it when creating a NormalizedFilePath so it's only computed
once.
Making this change causes a benchmark which calls hover 1000 times to go
down from 259s to 44s.
* Use a HashMap rather than a Map for debouncer
NormalizedUri is the primary key type for the debouncer which will have
a cached hash in the next haskell-lsp release.
* NormalizedFilePath: Make the hash strict so it can be unpacked
0 commit comments