Skip to content
Commit 095497ff authored by Peter Lieven's avatar Peter Lieven Committed by Gerd Hoffmann
Browse files

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: default avatarPeter Lieven <pl@kamp.de>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Message-id: 1467280846-9674-1-git-send-email-pl@kamp.de
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 5a693efd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment