All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] builtin/repo: improve counting of objects
@ 2026-11-13 11:46 Patrick Steinhardt
  2026-11-13 11:46 ` [PATCH 1/2] builtin/repo: only parse objects as needed Patrick Steinhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Patrick Steinhardt @ 2026-11-13 11:46 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-11-16 17:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 11:46 [PATCH 0/2] builtin/repo: improve counting of objects Patrick Steinhardt
2026-11-13 11:46 ` [PATCH 1/2] builtin/repo: only parse objects as needed Patrick Steinhardt
2026-11-13 14:12   ` Kristofer Karlsson
2026-11-16  6:38     ` Patrick Steinhardt
2026-11-16  9:02       ` Kristofer Karlsson
2026-11-13 11:46 ` [PATCH 2/2] builtin/repo: don't fully parse trees Patrick Steinhardt
2026-11-13 14:15   ` Kristofer Karlsson
2026-11-16  6:39     ` Patrick Steinhardt
2026-11-16 13:43   ` Derrick Stolee
2026-11-16  8:01 ` [PATCH v2 0/2] builtin/repo: improve counting of objects Patrick Steinhardt
2026-11-16  8:01   ` [PATCH v2 1/2] builtin/repo: only parse objects as needed Patrick Steinhardt
2026-11-16  8:01   ` [PATCH v2 2/2] builtin/repo: don't fully parse trees Patrick Steinhardt
2026-11-16  9:07   ` [PATCH v2 0/2] builtin/repo: improve counting of objects Kristofer Karlsson
2026-11-16 16:02   ` Derrick Stolee
2026-11-16 17:32     ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.