diff options
author | dormando <dormando@rydia.net> | 2012-08-31 18:49:50 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2012-09-03 00:35:54 -0700 |
commit | 67d7cfc1355a0f4550263f3d24758840668017f8 (patch) | |
tree | 29ff30850ffcb6fd8d8d1df166b6a4da56b4c236 /items.h | |
parent | 1c94e12c3d7615e4859eddde88ed7e53cd127d32 (diff) | |
download | memcached-67d7cfc1355a0f4550263f3d24758840668017f8.tar.gz |
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.
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |