Reduce P99 latency with async rehash

Former-commit-id: 6c045837c7cf92dc92be35465229b482e09e46d2
This commit is contained in:
John Sully 2021-04-12 03:22:22 +00:00
parent 69f7a194bc
commit 2d2ae90f30

View File

@ -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;