[PATCH 1/2] atom: Bump initial table size
Adam Jackson
ajax at redhat.com
Tue Jun 2 11:08:38 PDT 2015
We're always creating ~230 atoms at startup, might as well tune it so we
don't hit the realloc path before Dispatch.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
dix/atom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dix/atom.c b/dix/atom.c
index 7de7fb0..a1e555e 100644
--- a/dix/atom.c
+++ b/dix/atom.c
@@ -56,7 +56,7 @@ SOFTWARE.
#include "resource.h"
#include "dix.h"
-#define InitialTableSize 100
+#define InitialTableSize 256
typedef struct _Node {
struct _Node *left, *right;
--
2.4.1
More information about the xorg-devel
mailing list