Re: Fast enumeration of objects
Jeff King <peff@peff.net> writes:
Show 17 quoted lines
> ...
> 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.