]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: maintain pack symlinks and use "git multi-pack-index"
authorEric Wong <e@80x24.org>
Fri, 25 Jun 2021 01:06:39 +0000 (01:06 +0000)
committerEric Wong <e@80x24.org>
Sun, 27 Jun 2021 00:55:18 +0000 (00:55 +0000)
commit991731f1084b99230d1f2a1f2bb8ce7c69bc252b
tree46ffe706cb7e39b1e5008d01fe035e4e6e549456
parent5860b498af67dc0944c39667e3899485b5650387
extindex: maintain pack symlinks and use "git multi-pack-index"

This is a fair amount of complexity, but it speeds up
"git cat-file --batch" startup by 3-4% with 50K packfiles
with a hot kernel cache.

This appears extremely sensitive to RAM available to
the kernel page cache with my SATA 2 SSD.  Faster storage
and more RAM can bring loading pack.

2.60s vs 2.69s were the best cases on my workstation with and
without the multi-pack-index, however times could be all over
the place (even in the minutes) with more activity on my
workstation.

Getting sub-minute times requires a git patch to speed up
alt_odb_usable():
  <https://lore.kernel.org/20210624005806.12079-1-e@80x24.org/>
Otherwise, prepare to wait several minutes.
lib/PublicInbox/ExtSearchIdx.pm