TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The Slotted Counter Pattern (2020)

49 点作者 eatonphil3 个月前

4 条评论

oftenwrong3 个月前
This is similar to how java.util.concurrent.atomic.LongAdder works:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;openjdk&#x2F;jdk&#x2F;blob&#x2F;master&#x2F;src&#x2F;java.base&#x2F;share&#x2F;classes&#x2F;java&#x2F;util&#x2F;concurrent&#x2F;atomic&#x2F;LongAdder.java">https:&#x2F;&#x2F;github.com&#x2F;openjdk&#x2F;jdk&#x2F;blob&#x2F;master&#x2F;src&#x2F;java.base&#x2F;sha...</a>
评论 #42938956 未加载
评论 #42937852 未加载
hassleblad233 个月前
Are there are any other approaches for this problem? Seems like there should be.
评论 #42939213 未加载
评论 #42938277 未加载
评论 #42939374 未加载
评论 #42938839 未加载
评论 #42938083 未加载
whirlwin3 个月前
It&#x27;s an interesting approach. In similar cases has anyone got experience using a database more optimized on writes, e.g. Cassandra?
eatenfill3 个月前
phillip it&#x27;s called lock striping
评论 #42938085 未加载