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: Smaller Search Index #13431

Merged
merged 5 commits into from
Apr 14, 2014
Merged

Commits on Apr 14, 2014

  1. rustdoc: Use smaller sequential numbers instead of NodeIds for pare…

    …nts.
    
    `allPaths` is now a flat array in effect. This decreases the size of
    the search index by about 4--5% (gzipped or not).
    lifthrasiir committed Apr 14, 2014
    Configuration menu
    Copy the full SHA
    ab6915d View commit details
    Browse the repository at this point in the history
  2. rustdoc: Represent item types as a small number in the search index.

    Has negligible improvements with gzip, but saves about 7% without it.
    This also has an effect of changing the tie-breaking order of item types.
    lifthrasiir committed Apr 14, 2014
    Configuration menu
    Copy the full SHA
    f1de04c View commit details
    Browse the repository at this point in the history
  3. rustdoc: Use an array instead of an object for the search index.

    `buildIndex` JS function recovers them into the original object form.
    This greatly reduces the size of the uncompressed search index (27%),
    while this effect is less visible after gzipped (~5%).
    lifthrasiir committed Apr 14, 2014
    Configuration menu
    Copy the full SHA
    f6854ab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9eb336a View commit details
    Browse the repository at this point in the history
  5. rustdoc: Omit repeated paths in the search index.

    Since the items roughly follow the lexical order, there are
    many consecutive items with the same path value which can be
    easily compressed.
    
    For the library and compiler docs, this commit decreases
    the index size by 26% and 6% before and after gzip, respectively.
    lifthrasiir committed Apr 14, 2014
    13 Configuration menu
    Copy the full SHA
    8f5d71c View commit details
    Browse the repository at this point in the history