diff options
| author | Corentin Chary | 2010-07-07 20:57:58 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2010-07-27 00:36:14 +0200 |
| commit | 5136a0526989fdfd8799ae4e29ff43d5b80ee37e (patch) | |
| tree | db123aaff5757a8155c4a1808c0558c8eb7fc9c1 /ui/vnc-enc-zlib.c | |
| parent | vnc: tight: specific zlib level and filters for each compression level (diff) | |
| download | qemu-5136a0526989fdfd8799ae4e29ff43d5b80ee37e.tar.gz qemu-5136a0526989fdfd8799ae4e29ff43d5b80ee37e.tar.xz qemu-5136a0526989fdfd8799ae4e29ff43d5b80ee37e.zip | |
vnc: tight: stop using qdict for palette stuff
Profiling with callgrind seems to show that a lot of time is spent
in the palette code (mostly due to memory allocation and qdict to int
conversion).
This patch adds a VncPalette implementation. The palette is stored
in a hash table, like qdict, but which does way less memory allocations,
and doesn't suffer from the QObject overhead.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/vnc-enc-zlib.c')
0 files changed, 0 insertions, 0 deletions
