From: Stefan Sperling Subject: Re: let gotadmin pack map files into memory To: gameoftrees@openbsd.org Date: Mon, 10 Jan 2022 12:11:51 +0100 On Sat, Jan 08, 2022 at 12:35:35AM +0100, Stefan Sperling wrote: > On Fri, Dec 31, 2021 at 08:10:22PM +0100, Stefan Sperling wrote: > > On Fri, Dec 31, 2021 at 05:50:43PM +0100, Stefan Sperling wrote: > > > Computing deltas between files involves a lot of seeking around in > > > order to search for matching blocks. With this patch we bypass the > > > stdio layer for files which are small enough to be mapped into memory, > > > while keeping the stdio case as a fallback very large files. > > > > Please ignore this patch for now. > > It causes bad object errors from 'git fsck' after 'gotadmin pack -a'. > > Here is a fixed version of this patch. I have committed this patch.