From fd7a278eea2d8aaef9eceef382e8f47cedc819be Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 29 Nov 2019 15:18:37 -0500 Subject: [PATCH] rehash MS does too little work before checking the time Former-commit-id: 3e57b5c961f7dd91ddb24331eba9a3fa39b08fdd --- src/dict.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dict.cpp b/src/dict.cpp index 2def6ac5d..5217081ac 100644 --- a/src/dict.cpp +++ b/src/dict.cpp @@ -242,8 +242,8 @@ int dictRehashMilliseconds(dict *d, int ms) { long long start = timeInMilliseconds(); int rehashes = 0; - while(dictRehash(d,100)) { - rehashes += 100; + while(dictRehash(d,1000)) { + rehashes += 1000; if (timeInMilliseconds()-start > ms) break; } return rehashes;