Commit 80e1805
committed
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).1 parent 5ab6924 commit 80e1805
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 | |
|---|---|---|---|
| |||
5225 | 5225 | | |
5226 | 5226 | | |
5227 | 5227 | | |
5228 | | - | |
| 5228 | + | |
5229 | 5229 | | |
5230 | | - | |
| 5230 | + | |
5231 | 5231 | | |
5232 | 5232 | | |
5233 | 5233 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
1214 | | - | |
| 1214 | + | |
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| |||
3706 | 3706 | | |
3707 | 3707 | | |
3708 | 3708 | | |
3709 | | - | |
| 3709 | + | |
3710 | 3710 | | |
3711 | 3711 | | |
3712 | 3712 | | |
| |||
3835 | 3835 | | |
3836 | 3836 | | |
3837 | 3837 | | |
3838 | | - | |
3839 | | - | |
| 3838 | + | |
3840 | 3839 | | |
3841 | 3840 | | |
3842 | 3841 | | |
| |||
3938 | 3937 | | |
3939 | 3938 | | |
3940 | 3939 | | |
3941 | | - | |
| 3940 | + | |
3942 | 3941 | | |
3943 | 3942 | | |
3944 | 3943 | | |
| |||
| 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