From: Patrick Steinhardt Date: Fri, 13 Nov 2026 11:46:16 GMT Subject: [PATCH 0/2] builtin/repo: improve counting of objects Message-ID: <20261113-pks-repo-count-objects-speedup-v1-0-7ba4f29e74fb@pks.im> Hi, I was recently using `git repo structure` in a very large repository and was eventually greeted with an OOM. So I had a bit of a look and found a way to improve the memory footprint and speed it up a bit. The repository still doesn't produce results. As it turns out, walking 33 billion tree entries takes a while, and everything rev-list based that walks trees is kinda broken in there. Oh, well, a problem for another day. Thanks! Patrick --- Patrick Steinhardt (2): builtin/repo: only parse objects as needed builtin/repo: don't fully parse trees builtin/repo.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) --- base-commit: 1891de46f79dc444a47db1c87bd0c8c76b5463f2 change-id: 20261111-pks-repo-count-objects-speedup-528abf12ea23