Commit 4952b35
committed
Speed up checking whether entry is coming from a dependency
Doing filtering brefore fuzzy matching didn't improve performance,
because retrieving full paths of entries is slow.
Since the file paths are escaped in URIs, they're currently being
unescaped with Windows handling in order to retrieve the raw path. This
is extra work, because we know the raw path at the time we're building
the URI, we just didn't store that information.
Storing the raw path in the URI and retrieving it speeds up workspace
symbol search ~4x in my application.1 parent 5215014 commit 4952b35
File tree
2 files changed
+4
-1
lines changed- lib
- ruby_indexer/lib/ruby_indexer
- ruby_lsp/requests
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments