|
From: | Markus Armbruster |
Subject: | Re: [Qemu-devel] [PATCH v3 4/5] qtest: precompute hex nibs |
Date: | Wed, 06 May 2015 08:25:20 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
John Snow <address@hidden> 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?
[Prev in Thread] | Current Thread | [Next in Thread] |