Build a switch's aligned index entries without loading the left-out files' blobs #137

Closed
opened 2026-10-25 10:44:27 -05:00 by ethan-hann · 0 comments
Owner

A switch aligns the index for left-out paths with reset <tree> -- <named paths>, which loads each differing blob from the store: about 10 s for a 2 GB left-out cache (measured with a raw-git harness, warm cache). Writing the same entries with update-index --index-info from the switch plan's mode, id and path took 0.73 s in the same harness. It needs a design that keeps the valid stamp of a left-out file that already holds the target's bytes (covered by A_left_out_file_that_already_holds_the_targets_bytes_keeps_a_valid_stamp_in_the_index), writes removal lines for named paths the target lacks, and keeps the displaced-entry detection the alignment does today (D41, LR-002). Measure on the bundled git and with a cold cache before deciding.

A switch aligns the index for left-out paths with `reset <tree> -- <named paths>`, which loads each differing blob from the store: about 10 s for a 2 GB left-out cache (measured with a raw-git harness, warm cache). Writing the same entries with `update-index --index-info` from the switch plan's mode, id and path took 0.73 s in the same harness. It needs a design that keeps the valid stamp of a left-out file that already holds the target's bytes (covered by A_left_out_file_that_already_holds_the_targets_bytes_keeps_a_valid_stamp_in_the_index), writes removal lines for named paths the target lacks, and keeps the displaced-entry detection the alignment does today (D41, LR-002). Measure on the bundled git and with a cold cache before deciding.
ethan-hann added this to the Later milestone 2026-10-25 10:44:27 -05:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ethan-hann/SavePoint#137
No description provided.