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.

貢獻者指南