On 05/06/2015 02:25 AM, Markus Armbruster wrote: > John Snow <js...@redhat.com> writes: > >> Instead of letting printf and friends do this for us >> one byte at a time, fill a buffer ourselves and then >> send the entire buffer in one go. >> >> This gives a moderate speed improvement over the old >> method. > > Out of curiosity: how much of the improvement is due to doing our own > buffering instead of printf()'s (assuming the stream is buffered), and > how much is due to doing our own hex formatting instead of printf()'s? >
Out of ignorance: How would I measure?