jboner/akka — comment on commit 8b71bf5bea435cc0ef2caa68a3e6afa4ac01da77
File: akka-actor/src/main/scala/akka/routing/Routing.scala line 64
By rkuhn:

wrt every call: yes, I agree that it should be handled in the pool implementation, so the hook should stay as is here. Down in the default impl I think it should only resize on every Nth message, based on the elasticity parameters. Otherwise one flip of the AtomicBoolean per message send would be too costly. I propose an atomic counter with a threshold, and the reduction is done by the one doing the resizing; anybody else just always increments.