]> Sergey Matveev's repositories - public-inbox.git/commit
git: remove cat_file sub callback interface
authorEric Wong <e@80x24.org>
Thu, 13 Jun 2019 08:10:02 +0000 (08:10 +0000)
committerEric Wong <e@80x24.org>
Fri, 14 Jun 2019 01:01:02 +0000 (01:01 +0000)
commit19629ff99de0eb43a26963b8c276eae54f1247c8
tree4d6a06b93888e9d488a25b6f4e889dde300f80df
parent541103582a3f60a3c6df0383382cacd782ea1edd
git: remove cat_file sub callback interface

We weren't using it, and in retrospect, it makes no sense to use
this API cat_file for giant responses which can't read quickly
with minimal context-switching (or sanely fit into memory for
Email::Simple/Email::MIME).

For giant blobs which we don't want slurped in memory, we'll
spawn a short-lived git-cat-file process like we do in ViewVCS.

Otherwise, monopolizing a git-cat-file process for a giant
blob is harmful to other PSGI/NNTP users.

A better interface is coming which will be more suitable for
for batch processing of "small" objects such as commits and
email blobs.
lib/PublicInbox/Git.pm
t/git.t