alfred icon indicating copy to clipboard operation
alfred copied to clipboard

Patch to speedup key_map.scan with cached_key_map

Open sergeyksv opened this issue 14 years ago • 0 comments

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);

sergeyksv avatar Aug 26 '11 17:08 sergeyksv