Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: sort search index items for compression #83835

Merged
merged 2 commits into from
Apr 6, 2021

Commits on Apr 4, 2021

  1. rustdoc: sort search index items for compression

    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
    notriddle committed Apr 4, 2021
    Configuration menu
    Copy the full SHA
    5f92951 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2370e3b View commit details
    Browse the repository at this point in the history