Commit 2fc9a3a
committed
rustdoc-search: adjust packing heuristics to save more space
This upgrade causes stringdex to use fewer, larger files with the
suffix-only children included more often. This is particularly aimed
at reducing the number of files required by many-assoc-items.
The cost of this change is that the browser has to download more
data that it isn't using while walking the search tree, because
branches of the search tree that it isn't using are in the files
it downloads. When I tested against the wordnet dictionary,
"indexing" required 12MiB of transfer, where it used to require 8MiB.1 parent 16ad385 commit 2fc9a3a
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5228 | 5228 | | |
5229 | 5229 | | |
5230 | 5230 | | |
5231 | | - | |
| 5231 | + | |
5232 | 5232 | | |
5233 | | - | |
| 5233 | + | |
5234 | 5234 | | |
5235 | 5235 | | |
5236 | 5236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments