summaryrefslogtreecommitdiffstats
path: root/include/exec/memory-internal.h
diff options
context:
space:
mode:
authorJohn Snow2015-05-22 20:13:44 +0200
committerJohn Snow2015-05-22 21:58:22 +0200
commit5560b85a31e6f15a8841b66620d9497943094ee4 (patch)
tree267c1f98fab3800dcdc936ebc66f565c9d4d8445 /include/exec/memory-internal.h
parentlibqos/ahci: Swap memread/write with bufread/write (diff)
downloadqemu-5560b85a31e6f15a8841b66620d9497943094ee4.tar.gz
qemu-5560b85a31e6f15a8841b66620d9497943094ee4.tar.xz
qemu-5560b85a31e6f15a8841b66620d9497943094ee4.zip
qtest: pre-buffer hex nibs
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 <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-id: 1431021095-7558-2-git-send-email-jsnow@redhat.com
Diffstat (limited to 'include/exec/memory-internal.h')
0 files changed, 0 insertions, 0 deletions