87 points · by malmz · 6mo ago · 4 comments
Atomics were introduced a while before `counters`, maybe you remember a custom implementation on top of that?
Counting Fast in Erlang with :counters and :atomics
Two BEAM escape hatches for counting fast—shared, mutable, off-heap integer arrays. How :atomics and :counters work, what they guarantee, and when to reach for each.
Andrea Leopardi