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

Flutter search index is 27MB on disk #3423

Open
srawlins opened this issue May 30, 2023 · 0 comments
Open

Flutter search index is 27MB on disk #3423

srawlins opened this issue May 30, 2023 · 0 comments
Labels
area-output-size Issues related to dartdoc's sometimes unreasonable output size. area-search Issues with the search box P2 A bug or feature request we're likely to work on type-performance Issues related to slow dartdoc generation.

Comments

@srawlins
Copy link
Member

I just generated it, and it's 27MB. It is probably highly compressible, so maybe isn't a huge transfer cost. There are easy wins here:

  • Remove overrides which do not have explicit docs.
  • Create indexes. For example, an index of packageNames, and then each search item does not need to spell out its packageName. Additionally, each search item can be given an ID, and then the "enclosedBy" references can point to an ID.
@srawlins srawlins added area-search Issues with the search box type-performance Issues related to slow dartdoc generation. area-output-size Issues related to dartdoc's sometimes unreasonable output size. labels May 30, 2023
@jcollins-g jcollins-g added the P2 A bug or feature request we're likely to work on label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-output-size Issues related to dartdoc's sometimes unreasonable output size. area-search Issues with the search box P2 A bug or feature request we're likely to work on type-performance Issues related to slow dartdoc generation.
Projects
None yet
Development

No branches or pull requests

2 participants