akka/akka-core
View on GitHubShardRegion - use counter instead of calculating size using foldLeft
Open
#19,191 opened on Dec 15, 2015
1 - triagedhelp wantedt:cluster-shardingt:cluster-tools
Repository metrics
- Stars
- (13,277 stars)
- PR merge metrics
- (Avg merge 8d 19h) (10 merged PRs in 30d)
Description
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.