chrisdinn / brando

A Redis client written with Akka's IO package
Other
107 stars 24 forks source link

Compute list of keys for each shard when shards are added #35

Closed paintcan closed 10 years ago

paintcan commented 10 years ago

The list of keys used for looking up shards to send requests to was pulled from the set of the keys for every shard in the lookup operation, and rebuilt for every request. This work has been pulled out so it is only performed once. With a large enough set of shards this change will prevent the lookup operation from chewing up every CPU.