[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/1] qtest: pre-buffer hex nibs
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 1/1] qtest: pre-buffer hex nibs |
Date: |
Fri, 08 May 2015 19:15:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
John Snow <address@hidden> writes:
> Instead of converting each byte one-at-a-time and then sending each byte
> over the wire, use sprintf() to pre-compute all of the hex nibs into a
> single buffer, then send the entire buffer all at once.
>
> This gives a moderate speed boost to memread() and memwrite() functions.
>
> Signed-off-by: John Snow <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>