Skip to content

history_nodes: bound a page by bytes, not only by count #472

Closed

Description

@lydakis

Split out of #97, the one entry there that is not about the deleted desktop app (from #98's review).

What happens: history_nodes (src/store/db.rs) pages up to 400 nodes and lists each folder their turns ran in once. Nothing bounds the page by bytes. A page whose turns ran in many long folder paths can approach the 1 MiB event limit. That takes hundreds of distinct multi-kilobyte folders on one page, so it is a hostile-input or extreme-setup case, not ordinary use.

Done when: a page stops at a byte budget below the event limit and continues from next_from, as approvals already does (256 KiB), with a test that builds such a page.

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