]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Use glib slab allocator for hash tables.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Aug 2013 12:45:34 +0000 (13:45 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Aug 2013 12:45:34 +0000 (13:45 +0100)
config.h.in

index 1eb67bf2f0a7a69d2c07eddc90a2618df064739b..9e2995dd6a1185419b8b1991e8a4a0c11a69d863 100644 (file)
 #define HASH_FUNCTION MUR
 #define HASH_USING_NO_STRICT_ALIASING
 #endif
+/* Configure allocator */
+#define uthash_malloc(sz) g_slice_alloc(sz)
+#define uthash_free(ptr,sz) g_slice_free1(sz, ptr)
 
 #define ETC_PREFIX        "${ETC_PREFIX}"
 #define LOCALSTATES_PREFIX "${LOCALSTATES_PREFIX}"