Re: [Qemu-devel] [PATCH 1/1] qtest: pre-buffer hex nibs

2015-05-08 Thread Markus Armbruster
John Snow 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() functio

Re: [Qemu-devel] [PATCH 1/1] qtest: pre-buffer hex nibs

2015-05-07 Thread John Snow
On 05/07/2015 04:21 PM, Eric Blake wrote: > On 05/07/2015 11:51 AM, John Snow wrote: >> 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.

Re: [Qemu-devel] [PATCH 1/1] qtest: pre-buffer hex nibs

2015-05-07 Thread Eric Blake
On 05/07/2015 11:51 AM, John Snow wrote: > 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()

[Qemu-devel] [PATCH 1/1] qtest: pre-buffer hex nibs

2015-05-07 Thread John Snow
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