[PATCH] VSB_bcat: Don't do a single char at the time

Federico Schwindt fgsch at lodoss.net
Tue Dec 15 16:03:47 CET 2015


Hi,

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.

Comments? OK?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20151215/ee084d72/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vsb.patch
Type: text/x-diff
Size: 716 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20151215/ee084d72/attachment.patch>


More information about the varnish-dev mailing list