Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to jedis-5 #1677

Merged
merged 3 commits into from
Mar 22, 2024
Merged

Switch to jedis-5 #1677

merged 3 commits into from
Mar 22, 2024

Conversation

werkt
Copy link
Collaborator

@werkt werkt commented Mar 21, 2024

Fixes #1661

Calculate slot lookup table once per app instance

The slot key index is invariant for all usage, calculate it once and
avoid a costly lookup for successive calls to RedisSlotToHash.correlate.
Evidenced in slow unit tests, but may improve production runtime as
well. Provide an initial capacity to the slots ArrayList to boot.

Switch jedis dequeue over to milli granularity

Speeds up tests dramatically.

@werkt werkt force-pushed the jedis-5 branch 4 times, most recently from 724c06e to ac35c59 Compare March 22, 2024 03:45
The slot key index is invariant for all usage, calculate it once and
avoid a costly lookup for successive calls to RedisSlotToHash.correlate.
Evidenced in slow unit tests, but may improve production runtime as
well. Provide an initial capacity to the slots ArrayList to boot.
Speeds up tests dramatically.
@werkt werkt merged commit 96a0c87 into main Mar 22, 2024
6 checks passed
@werkt werkt deleted the jedis-5 branch March 22, 2024 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade jedis to v5, abandon fork
2 participants