From: Junio C Hamano Date: Mon, 22 Jun 2015 19:44:24 GMT Subject: Re: Fast enumeration of objects Message-ID: In-Reply-To: <20150622083543.GA12259@peff.net> Jeff King writes: > ... > So my conclusions are: > > 1. Yes, the pipe/parsing overhead of a separate processor really is > measurable. That's hidden in the wall-clock time if you have > multiple cores, but you may care more about CPU time. I still think > the flexibility is worth it. > > 2. Cutting out the pipe to cat-file is worth doing, as it saves a few > seconds. Cutting out "%(objecttype)" saves a lot, too, and is worth > doing. We should teach "list-all-objects -v" to use cat-file's > custom formatters (alternatively, we could just teach cat-file a > "--batch-all-objects" option rather than add a new command). > > 3. We should teach cat-file a "--buffer" option to use fwrite. Even if > we end up with "list-all-objects --format='%(objectsize)'" for this > task, it would help all the other uses of cat-file. All sounds very sensible.