From 2d2cf9e322a5ec3ead175edc136cdaeea00ec1b1 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 19 Dec 2014 12:57:41 -0500 Subject: atom: Bump initial table size We're always creating ~230 atoms at startup, might as well tune it so we don't hit the realloc path before Dispatch. Reviewed-by: Chris Wilson Signed-off-by: Adam Jackson --- dix/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/atom.c b/dix/atom.c index 7de7fb05e..a1e555e31 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; -- cgit v1.2.3