]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
midx: use buffered I/O to talk to pack-objects
authorRené Scharfe <l.s.r@web.de>
Wed, 12 Aug 2020 16:52:54 +0000 (18:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Aug 2020 17:29:39 +0000 (10:29 -0700)
commit6af3b00abc3d2af69e6bdf4f8c0843d7e3bf9c88
tree4be310540b2b0726a2e680d6be67e5d3dfbe106c
parent24b75faf0da7a025a192ab4c65cb1f1d6dc6b7f6
midx: use buffered I/O to talk to pack-objects

Like f0bca72dc77 (send-pack: use buffered I/O to talk to pack-objects,
2016-06-08), significantly reduce the number of system calls and
simplify the code for sending object IDs to pack-objects by using
stdio's buffering.

Helped-by: Chris Torek <chris.torek@gmail.com>
Helped-by: Johannes Sixt <j6t@kdbg.org>
Encouraged-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c