]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: introduce idx_stack
authorEric Wong <e@yhbt.net>
Fri, 24 Jul 2020 05:55:49 +0000 (05:55 +0000)
committerEric Wong <e@yhbt.net>
Sat, 25 Jul 2020 20:48:18 +0000 (20:48 +0000)
commitc386663dd9ffec6ebbe64e7bb5096ee3df7d273d
tree0000c6f12609202892e8c9a42826ad44f53234d2
parent4441a38481ed2c9472767a6387d8a2455ea34ad5
v2writable: introduce idx_stack

This avoids pinning a potentially large chunk of memory from
`git-log --reverse' into RAM (or triggering less predictable
swap behavior).  Instead it uses a contiguous temporary file
with a fixed-size record for every blob we'll need to index.
MANIFEST
lib/PublicInbox/IdxStack.pm [new file with mode: 0644]
lib/PublicInbox/V2Writable.pm
t/idx_stack.t [new file with mode: 0644]