From 67d7cfc1355a0f4550263f3d24758840668017f8 Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 31 Aug 2012 18:49:50 -0700 Subject: remove global stats lock from item allocation This doesn't reduce mutex contention much, if at all, for the global stats lock, but it does remove a handful of instructions from the alloc hot path, which is always worth doing. Previous commits possibly added a handful of instructions for the loop and for the bucket readlock trylock, but this is still faster than .14 for writes overall. --- items.h | 1 + 1 file changed, 1 insertion(+) (limited to 'items.h') diff --git a/items.h b/items.h index 4b25dcc..4c75119 100644 --- a/items.h +++ b/items.h @@ -16,6 +16,7 @@ int do_item_replace(item *it, item *new_it, const uint32_t hv); /*@null@*/ char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); void do_item_stats(ADD_STAT add_stats, void *c); +void do_item_stats_totals(ADD_STAT add_stats, void *c); /*@null@*/ void do_item_stats_sizes(ADD_STAT add_stats, void *c); void do_item_flush_expired(void); -- cgit v1.2.1