]> git.proxmox.com Git - qemu.git/commit
vnc: palette: use a pool to reduce memory allocations
authorCorentin Chary <corentincj@iksaif.net>
Fri, 4 Feb 2011 08:05:58 +0000 (09:05 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 23 Feb 2011 22:28:28 +0000 (16:28 -0600)
commite31e3694afef58ba191cbcc6875ec243e5971268
treeb5a18832ceb272a347843d9ed7b7798dd67b0079
parentce702e93b0b99562ed42ba5c078914f2209b9a6a
vnc: palette: use a pool to reduce memory allocations

We now that the palette will never have more than 256
elements. Let's use a pool to reduce malloc calls.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc-palette.c
ui/vnc-palette.h