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

Patch to speedup key_map.scan with cached_key_map #11

Open
sergeyksv opened this issue Aug 26, 2011 · 0 comments
Open

Patch to speedup key_map.scan with cached_key_map #11

sergeyksv opened this issue Aug 26, 2011 · 0 comments

Comments

@sergeyksv
Copy link

Hi. I noticed that scan doesn't utilize capabilities of cached_key_map get method while it can do that. We make the following patch to make it work:

136,137c136,137
< self.getAtPos(pos, length, function(err, key, value) {

< callback(null, key, value, pos, length);

  self.get(key, function(err, value) {
    callback(err, key, value);
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

No branches or pull requests

1 participant