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

Optimize KEYS runtime #31

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Optimize KEYS runtime #31

merged 1 commit into from
Jun 12, 2019

Conversation

hltbra
Copy link
Contributor

@hltbra hltbra commented Jun 11, 2019

Before this PR the runtime of KEYS was O(n) and n was the total number of lower level keys stored in the backend. This pull request uses the prefixes to have better performance and only look at the lower level keys that match the right prefix. It's O(n), but n now is the number of keys in the keyspace instead of keys in the backend.

@hltbra hltbra added the enhancement Enhance existing features label Jun 11, 2019
@hltbra hltbra merged commit d2c1317 into master Jun 12, 2019
@hltbra hltbra deleted the performance/improve-keys-runtime branch June 12, 2019 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant