akka/akka-core

ShardRegion - use counter instead of calculating size using foldLeft

Aperta

#19.191 aperta il 15 dic 2015

 (3 commenti) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:cluster-shardingt:cluster-tools

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

As mentioned in #19154 - instead of using totalBufferSize calculated by foldLefting shardBuffers everytime it is possible to add simple integer counter to ShardRegion actor to improve performance.

Guida contributor