Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] builtin-bundle.c - use stream buffered input for rev-list

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:28

Possibly related (same subject, not in this thread)

Mark Levedahl [off-list ref] writes:
git-bundle create on cygwin was nearly unusable due to 1 character
at a time (unbuffered) reading from an exec'ed process.
Gaah, well spotted.  I was wondering what that 20x difference
was, but did not notice that read_string() thing.

That function is probably sometimes necessary if you are reading
from a non-seekable fd and need to stop immediately after
reading the header (so that you can hand the rest to pack
handling code), but it really should be the last-ditch thing to
read one-byte-at-a-time.

Also, I even suspect that we are always reading from a seekable
bundle file in this program and it should be able to use
buffered input with seeking back as needed after you read
enough.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help