diff options
author | antirez <antirez@gmail.com> | 2020-04-07 12:07:09 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-04-07 12:07:54 +0200 |
commit | f69876280c630d49574fa094808d3a4791c5039b (patch) | |
tree | 66cb40c3a7729a5ef801ee3e2dd39c26cbbbce20 /src/rand.h | |
parent | 9a9109431b31a46da9c45fc1fd8c91b4f7bb9dc6 (diff) | |
download | redis-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