Skip to content

rustdoc search slower with cached network #146063

@Mark-Simulacrum

Description

@Mark-Simulacrum

Filing separately from #146048 because that's mostly about the index not being cached on ~first search (and instead getting incrementally loaded). This is about fully cached queries being slower.

Firefox profile of a trivial search (e) on nightly https://doc.rust-lang.org/nightly/std/?search=e: https://share.firefox.dev/4p1Va53 (1.225 seconds until "Load" event, which I think is a tiny bit before we see all of the search results).

Stable channel search (https://doc.rust-lang.org/stable/std/?search=e): https://share.firefox.dev/46bukjv takes 0.4 seconds or so, so about 2-3x faster.

On Chrome, I see loading finish faster, around 800ms on nightly, profile. But this is still about 2x slower than on stable, where results are available in 300ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions