Re: [PATCH v4] Refactor recv_sideband()
Nicolas Pitre <nico@fluxnic.net> writes:
> Here's a patch on top of it providing small optimizations.
Thanks; will apply with a miniscule fix.
Show 11 quoted lines
> ----- >8
> Subject: sideband.c: small optimization of strbuf usage
>
> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
> ...
> @@ -97,7 +97,7 @@ int recv_sideband(const char *me, int in_stream, int out)
> }
>
> if (outbuf.len) {
> - strbuf_addf(&outbuf, "\n");
> + strbuf_addch(&outbuf, "\n");> xwrite(2, outbuf.buf, outbuf.len);
> }
> strbuf_release(&outbuf);