Skip to content

Commit 2fc9a3a

Browse files
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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5228,9 +5228,9 @@ dependencies = [
52285228

52295229
[[package]]
52305230
name = "stringdex"
5231-
version = "0.0.1-alpha4"
5231+
version = "0.0.1-alpha5"
52325232
source = "registry+https://github.com/rust-lang/crates.io-index"
5233-
checksum = "2841fd43df5b1ff1b042e167068a1fe9b163dc93041eae56ab2296859013a9a0"
5233+
checksum = "01cf167a3cd0a22f42ed1d6721a3e2c67ad6d6d3e8ae148bb9aff19f8594c7c2"
52345234
dependencies = [
52355235
"stacker",
52365236
]

src/librustdoc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rustdoc-json-types = { path = "../rustdoc-json-types" }
2121
serde = { version = "1.0", features = ["derive"] }
2222
serde_json = "1.0"
2323
smallvec = "1.8.1"
24-
stringdex = { version = "0.0.1-alpha4" }
24+
stringdex = { version = "0.0.1-alpha5" }
2525
tempfile = "3"
2626
threadpool = "1.8.1"
2727
tracing = "0.1"

0 commit comments

Comments
 (0)