Skip to content

Persisted config summary, so a fast-forward doesn't load an unindexed target (next) #2093

Open

Description

@aaj3f

A fast-forward into a target that may govern writes needs the target's config, and reading it means loading the target. With #2009, on a fresh instance, that load is the whole cost of a fast-forward into an unindexed target: 166.7 ms against 16.3 ms on main for a target of 1,000 commits (#2009's measurement). Indexed and cached targets are near parity, and it's a cold path (mostly one-shot CLI fast-forwards), so #2009 takes the cheap narrowing and accepts the rest.

  • Make a ledger's config readable without a full load, e.g. a config summary persisted with each commit or nameservice record.

That changes a stored format, so by our rule for what goes where (can the new code run on data the previous version persisted, without a migration?), it belongs on next, not main.

From #2009 (Follow-ups: a fast-forward on a fresh instance).

Activity

  1. added
    enhancement
    P3
    area:storage
    on Oct 12, 2026
  2. added this to the 5.0.0 milestone on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:storageenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions