summaryrefslogtreecommitdiff
path: root/src/rand.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-04-07 12:07:09 +0200
committerantirez <antirez@gmail.com>2020-04-07 12:07:54 +0200
commitf69876280c630d49574fa094808d3a4791c5039b (patch)
tree66cb40c3a7729a5ef801ee3e2dd39c26cbbbce20 /src/rand.h
parent9a9109431b31a46da9c45fc1fd8c91b4f7bb9dc6 (diff)
downloadredis-faster-info.tar.gz
Speedup INFO by counting client memory incrementally.faster-info
Related to #5145. Design note: clients may change type when they turn into replicas or are moved into the Pub/Sub category and so forth. Moreover the recomputation of the bytes used is problematic for obvious reasons: it changes continuously, so as a conservative way to avoid accumulating errors, each client remembers the contribution it gave to the sum, and removes it when it is freed or before updating it with the new memory usage.
Diffstat (limited to 'src/rand.h')
0 files changed, 0 insertions, 0 deletions