Optimizing reference deletions in Git
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A GitLab engineer describes how Git's files backend rewrites the entire packed-refs file on every packed reference deletion, which gets slow in repositories with millions of refs. While benchmarking a Rust reimplementation, they found the C version needlessly reformatted unchanged entries.