]> Git Repo - qemu.git/commit
Optimize screendump
authorAvi Kivity <[email protected]>
Mon, 20 Jun 2011 08:12:47 +0000 (11:12 +0300)
committerAnthony Liguori <[email protected]>
Wed, 22 Jun 2011 12:18:38 +0000 (07:18 -0500)
commitf8e378f27f2a8b99bf9be0a9168ba0ea19eeb740
treebdc5f4192241afbcc17f931557529d6e18e17a77
parent9319a6d3a6af9ae85556261e4a759eaddb49d734
Optimize screendump

When running kvm-autotest, fputc() is often the second highest (sometimes #1)
function showing up in a profile.  This is due to fputc() locking the file
for every byte written.

Optimize by buffering a line's worth of pixels and writing that out in a
single call.

Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/vga.c
This page took 0.026881 seconds and 4 git commands to generate.