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 _scan() #212

Merged
merged 1 commit into from
Aug 27, 2018
Merged

Optimize _scan() #212

merged 1 commit into from
Aug 27, 2018

Commits on Aug 27, 2018

  1. Optimize _scan().

    In case that a regular expression is specified, it is not needed to copy all the keys if some of them do not match the regular expression.
    If a regular expression is not provided, there is no need to iterate over the slice. Instead, we simply copy the entire slice.
    This is useful in cases where we're dealing with a large number of keys.
    thedrow authored Aug 27, 2018
    Configuration menu
    Copy the full SHA
    72ff3c2 View commit details
    Browse the repository at this point in the history