akka/akka-core

ShardRegion - use counter instead of calculating size using foldLeft

开放

#19,191 创建于 2015年12月15日

 (3 条评论) (0 个反应) (0 位负责人)Scala (3,547 个派生)batch import
1 - triagedhelp wantedt:cluster-shardingt:cluster-tools

仓库指标

星标
 (13,277 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南