Commit graph

15 commits

Author SHA1 Message Date
Patrik Nordwall
66c81e915e Move state of ClusterHeartbeatSender to separate immutable class, see #2284 2012-10-10 15:23:18 +02:00
Patrik Nordwall
90d2fb46fc ClassTag to construct arrays, see #944
* array instead of Vector
2012-09-17 20:46:58 +02:00
Björn Antonsson
44f4fdb003 Some optimizations for the ConsistentHashingRouter 2012-09-17 14:52:25 +02:00
Patrik Nordwall
48d8a09075 Remove note about redis client, completely different impl, see #944 2012-09-14 13:53:04 +02:00
Patrik Nordwall
e3bd02b82c Optimized ConsistentHash with array and binarySearch, see #944
* Benchmarked with https://gist.github.com/3720666
* Instead of using TreeMap and rangeImpl this uses
  an sorted array of hash values of the nodes, and
  uses binarySearch in java.util.Arrays to find
  next node clockwise
* Benchmarked with https://gist.github.com/3720666
* Benchmark results show improvement from 500 kmsg/s
  to 700 kmsg/s, round-robin handles 1300 kmsg/s
2012-09-14 11:06:55 +02:00
Patrik Nordwall
5a90d7198c Improvements based on review feedback, see #944 2012-09-13 18:06:35 +02:00
Patrik Nordwall
d74464ba50 Move MurmurHash to separate file due to license header, see #944
* Also removed unused 'class MurmurHash', we only use
  'object MurmurHash'
2012-09-13 14:25:25 +02:00
Patrik Nordwall
521d20ba73 Make ConsistentHash immutable, see #944
* Makes it thread safe
* Also changed two scary (mutable Array) fields in MurmurHash to private
* Note in migration guide about changed api for ConsistentHash
2012-09-11 20:51:02 +02:00
Patrik Nordwall
705c118ea2 Pick correct node at the ring boundary and change to TreeMap, see #944
* The small problem was that it picked node counter clockwise
  in the ring for all, except for crc < firstKey, where it picked firstKey
  instead of lastKey
* Changed to clockwise selection and correct selection
  at the boundary, i.e. hash > lastKey => firstKey
  and hash < firstKey => firstKey
* Changed to TreeMap instead of the 2 separate TreeSet and Map
  collections
* Cleanup and documentation
2012-09-11 20:50:46 +02:00
Viktor Klang
4fb4903225 Further work on binary compatibility 2012-05-18 16:41:19 +02:00
Viktor Klang
149fbea5a7 Updating Copyright as per #1660 2012-01-19 18:21:06 +01:00
Jonas Bonér
4d649c3903 Removed all @author tags for Jonas Bonér since it has lost its meaning.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-09 18:44:59 +01:00
Viktor Klang
9d71be7778 Updating copyright section to Typesafe Inc. etc 2011-07-14 16:03:08 +02:00
Jonas Bonér
a7311c83e6 Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code 2011-05-18 17:25:30 +02:00
Jonas Bonér
cfea06c5d5 Added consistent hashing abstraction class 2011-05-17 21:15:27 +02:00