diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-12-05 00:13:54 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-12-05 00:13:54 +0000 |
commit | f0adfb4dedd27d62db8579cbdac07f72f1500cf9 (patch) | |
tree | 0c8dd6d1bfcbc100909973837bc00aa9b1eb2f1a /sys/src/cmd/git/ref.c | |
parent | 5465c4c01a38cc47e5636be0e83666693efa304e (diff) |
git: improve pack cache heuristics
the pack cache was very stupid: it would close packs
as early as possible, which would prevent packs from
getting reused effectively. It would also select a
bad pack to close.
This picks the oldest pack, refcounts correctly, and
keeps up to Npackcache open at once (though it will
go over if more are in use).
Diffstat (limited to 'sys/src/cmd/git/ref.c')
0 files changed, 0 insertions, 0 deletions