Reducing hash and keymap hashtable slots from 65535
to 127 which will reduce memory footprint. Tested using a few keymaps and With 0x7f there were max 5 collisions in a slot which is good for performance. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1804 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
2a76ef7b53
commit
35ed85c03b
@ -35,8 +35,8 @@
|
|||||||
#include "rdesktop.h"
|
#include "rdesktop.h"
|
||||||
#include "scancodes.h"
|
#include "scancodes.h"
|
||||||
|
|
||||||
#define KEYMAP_SIZE 0xffff+1
|
#define KEYMAP_SIZE 0x7f+1
|
||||||
#define KEYMAP_MASK 0xffff
|
#define KEYMAP_MASK 0x7f
|
||||||
#define KEYMAP_MAX_LINE_LENGTH 80
|
#define KEYMAP_MAX_LINE_LENGTH 80
|
||||||
|
|
||||||
extern Display *g_display;
|
extern Display *g_display;
|
||||||
|
Loading…
Reference in New Issue
Block a user