From: Vsevolod Stakhov Date: Sun, 4 Aug 2013 12:45:34 +0000 (+0100) Subject: Use glib slab allocator for hash tables. X-Git-Tag: 0.6.0~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73daa89974bee6848f0659b395fcac8e6ee87e90;p=thirdparty%2Frspamd.git Use glib slab allocator for hash tables. --- diff --git a/config.h.in b/config.h.in index 1eb67bf2f0..9e2995dd6a 100644 --- a/config.h.in +++ b/config.h.in @@ -205,6 +205,9 @@ #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}"