

Github rustdoc: sort search index items for compression by notriddle · Pull Requ...
source link: https://github.com/rust-lang/rust/pull/83835
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This should not affect the appearance of the docs pages themselves.
This makes the pre-compressed search index smaller, thanks to the
empty-string path duplication format, and also the gzipped version,
by giving the algorithm more structure to work with.
rust$ wc -c search-index-old.js search-index-new.js
2628334 search-index-old.js
2586181 search-index-new.js
5214515 total
rust$ gzip search-index-*
rust$ wc -c search-index-old.js.gz search-index-new.js.gz
239486 search-index-old.js.gz
237386 search-index-new.js.gz
476872 total
Recommend
-
12
Conversation Copy link Contributor ...
-
8
Copy link Contributor notriddle commented
-
8
Copy link Contributor notriddle
-
6
Conversation Contributor...
-
14
Conversation Contributor Fixes...
-
5
Conversation Contributor This f...
-
4
Conversation Contributor Previe...
-
3
Contributor Blocked on
-
3
Summary Trait associated type queries work in rustdoc's type driven search. The data is included in the search-index.js file, and the queries are designed to "do what I mean" when users type them in, so, for e...
-
3
Conversation Contributor...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK