Reduce P99 latency with async rehash
Former-commit-id: 6c045837c7cf92dc92be35465229b482e09e46d2
This commit is contained in:
parent
69f7a194bc
commit
2d2ae90f30
@ -384,7 +384,7 @@ dictAsyncRehashCtl *dictRehashAsyncStart(dict *d, int buckets) {
|
||||
|
||||
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) {
|
||||
dictEntry *de;
|
||||
|
Loading…
x
Reference in New Issue
Block a user