[PATCH] VSB_bcat: Don't do a single char at the time
phk at phk.freebsd.dk
Tue Dec 15 16:10:00 CET 2015
In message <CAJV_h0bB8=_4yswj8MrVnb+y9EWT2y+csFfgviHp2dEALG03pQ at mail.gmail.com>
, Federico Schwindt writes:
>VSB_bcat calls VSB_put_byte for each char that needs to append.
>Since we know the length it's better to extend the buffer if needed and
>just memcpy the whole input.
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev