You can override this to easily change your serializers.
You can override this to easily change your serializers. If you do so, make sure to change the config to use the name of your new class
Since each thread only needs 1 Kryo, the pool doesn't need more space than the number of threads.
Since each thread only needs 1 Kryo, the pool doesn't need more space than the number of threads. We guess that there are 4 hyperthreads / core and then multiple by the nember of cores.
To use, add a key to your config like:
akka.actor.serializers { kryo = "com.twitter.chill.akka.AkkaSerializer" }
Then for the super-classes of all your message types, for instance, scala.Product, write:
akka.actor.serialization-bindings { "scala.Product" = kryo }
Kryo is not thread-safe so we use an object pool to avoid over allocating.