Reduce P99 latency with async rehash
Former-commit-id: 7ea4c26fd82c0cdfa377183083f38a43336e480b
This commit is contained in:
parent
df66c598e9
commit
e6782d8f1b
@ -384,7 +384,7 @@ dictAsyncRehashCtl *dictRehashAsyncStart(dict *d, int buckets) {
|
|||||||
|
|
||||||
d->asyncdata = new dictAsyncRehashCtl(d, d->asyncdata);
|
d->asyncdata = new dictAsyncRehashCtl(d, d->asyncdata);
|
||||||
|
|
||||||
int empty_visits = buckets * 10;
|
int empty_visits = buckets;
|
||||||
|
|
||||||
while (d->asyncdata->queue.size() < (size_t)buckets && (size_t)d->rehashidx < d->ht[0].size) {
|
while (d->asyncdata->queue.size() < (size_t)buckets && (size_t)d->rehashidx < d->ht[0].size) {
|
||||||
dictEntry *de;
|
dictEntry *de;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user