Ben Alex
Ben Alex
I agree we should improve the documentation. We can use an `AtomicInteger` reference counting pattern: - Increment on `Txn` constructor - Decrement on `Txn.close()` - Block on `Env.close()` if count...
Agreed, `closed` should be `volatile`. Re `LongAdder`, I don't think we are likely to have high contention situations. The extra complexity of accumulating the cells seems likely to exceed the...
> I'm not sure that is true. One of our uses of LJ is for lookups of reference data to decorate event streams. Many threads (some servers have 100+ cores)...
Thanks @at055612 for updating the benchmark and sharing the results. Despite the better performance of `LongAdder`, I'm concerned it won't work for our use case. From [`LongAdder.sum()`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/atomic/LongAdder.html#sum()): > Returns the...