Commit af00ff2
committed
Auto merge of #145911 - notriddle:stringdex-tweak-3, r=GuillaumeGomez
rustdoc-search: yet another stringdex optimization attempt
This one's uses a different tactic. It shouldn't significantly increase the amount of downloaded index data, but still reduces the amount of disk usage.
This one works by changing the suffix-only node representation to omit some data that's needed for checking. Since those nodes make up the bulk of the tree, it reduces the data they store, but also requires validating the match by fetching the name itself (but the names list is pretty small, and when I tried it with wordnet "indexing" it was about the same).
r? `@GuillaumeGomez`File tree
5 files changed
+647
-164
lines changed- src/librustdoc
- html/static/js
5 files changed
+647
-164
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5152 | 5152 | | |
5153 | 5153 | | |
5154 | 5154 | | |
5155 | | - | |
| 5155 | + | |
5156 | 5156 | | |
5157 | | - | |
| 5157 | + | |
5158 | 5158 | | |
5159 | 5159 | | |
5160 | 5160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
1215 | | - | |
| 1215 | + | |
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
| |||
3722 | 3722 | | |
3723 | 3723 | | |
3724 | 3724 | | |
3725 | | - | |
| 3725 | + | |
3726 | 3726 | | |
3727 | 3727 | | |
3728 | 3728 | | |
| |||
3851 | 3851 | | |
3852 | 3852 | | |
3853 | 3853 | | |
3854 | | - | |
3855 | | - | |
| 3854 | + | |
3856 | 3855 | | |
3857 | 3856 | | |
3858 | 3857 | | |
| |||
3954 | 3953 | | |
3955 | 3954 | | |
3956 | 3955 | | |
3957 | | - | |
| 3956 | + | |
3958 | 3957 | | |
3959 | 3958 | | |
3960 | 3959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 10 | | |
20 | 11 | | |
21 | 12 | | |
| |||
29 | 20 | | |
30 | 21 | | |
31 | 22 | | |
32 | | - | |
33 | 23 | | |
34 | | - | |
35 | 24 | | |
36 | 25 | | |
37 | 26 | | |
| |||
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
| 33 | + | |
| 34 | + | |
44 | 35 | | |
45 | 36 | | |
46 | 37 | | |
| |||
0 commit comments