Fix performance issue in benchmarks

This commit is contained in:
Patrick Pelissier committed 2020-05-19 23:21:00 +02:00
1 parent 0ac2c62ffe
commit 3d2ce63d63
2 files changed
+2 -7

No files matched your search

-5
View File
@@ -1,8 +1,3 @@
#ifndef NDEBUG
#define NDEBUG
#endif
#undef NDEBUG
#include <string.h>
#include "benchmark.h"
+2 -2
View File
@@ -4,10 +4,10 @@
#include "m-dict.h"
#include "m-mempool.h"
DICT_DEF2(dict_int,
DICT_STOREHASH_DEF2(dict_int,
int, M_OPEXTEND(M_DEFAULT_OPLIST, MEMPOOL(mpool_int), MEMPOOL_LINKAGE(static)),
int, M_DEFAULT_OPLIST)
DICT_DEF2(dict_str,
DICT_STOREHASH_DEF2(dict_str,
const char *, M_OPEXTEND (M_CSTR_OPLIST, MEMPOOL(mpool_str), MEMPOOL_LINKAGE(static)),
int, M_DEFAULT_OPLIST)