Skip to content

storage optimization with shared side-bar in the html #1931

@ljbrooks

Description

@ljbrooks

I am using mdbook for manual pages, which is auto generated with 100K md files. This is becoming an issue as it would take 100G to 200G disk space and hours of mdbook build time, and I think the bottleneck is how the sidebar is handled.

I looked into the generate html file, it seems every html file is 14MB because the side bar is duplicated verbatim, is having all the MD files listed and it takes a lot of space. I wonder if mdbook can optimize this a bit by sharing the side-bar data in a shared file and let all the HTML files load it.

I am no expert on this, just a speculation based on my observation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions