Further reduce the aggressiveness of the keys eviction fiber #421
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR further reduce the aggressiveness of the keys eviction fiber running only once every 5ms instead of every 2ms.
This will not really impact significantly the amount of keys to be purged as the fiber does up to 100 loops to try to reduce the amount of inserted keys, infact the fiber will still free keys for up to 100 iterations for each run and will free 8 keys for each iteration, therefore in a second it might still free 100000 keys per thread, which is plenty without impacting on the performances.