vnc-enc-tight: use thread local storage for palette
authorPeter Lieven <pl@kamp.de>
Thu, 30 Jun 2016 10:00:46 +0000 (12:00 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 12 Jul 2016 06:34:13 +0000 (08:34 +0200)
commit095497ffc66b7f031ff2a17f1e50f5cb105ce588
tree567d421d34ce351c327de5d650bcd396574ed920
parent5a693efda84d7df5136cc2bd31c959bb1530b0c9
vnc-enc-tight: use thread local storage for palette

currently the color counting palette is allocated from heap, used and destroyed
for each single subrect. Use a static palette per thread for this purpose and
avoid the malloc and free for each update.

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1467280846-9674-1-git-send-email-pl@kamp.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-enc-tight.c