[babl] Increase the default size of hash tables to 512 entries.



commit 4f50e171a08a39b2b3db5e50960a1525870a1797
Author: �yvind Kolås <pippin gimp org>
Date:   Sun Nov 22 17:10:39 2009 +0000

    Increase the default size of hash tables to 512 entries.
    
    This avoids resizing of the hash tables for all typical usage scenarios
    and thus avoids a potential race condition in unlocked lookups.

 babl/babl-hash-table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-hash-table.c b/babl/babl-hash-table.c
index a3f8364..8afc3aa 100644
--- a/babl/babl-hash-table.c
+++ b/babl/babl-hash-table.c
@@ -23,7 +23,7 @@
 #include "config.h"
 #include "babl-internal.h"
 
-#define BABL_HASH_TABLE_INITIAL_MASK   0x7F
+#define BABL_HASH_TABLE_INITIAL_MASK   0x1FF  /* 511 */
 
 /* static functions declarations */
 static inline int



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]