aggregateknowledge / java-hll

Java library for the HyperLogLog algorithm
http://research.neustar.biz/2013/12/24/open-source-release-java-hll/
Apache License 2.0
312 stars 71 forks source link

Is this implementation thread-safe? #23

Open kayvonr opened 7 years ago

kayvonr commented 7 years ago

Can't find any mention of thread safety in the docs, just wanted to check

Thanks

shawnliu339 commented 1 year ago

I have same question. Does anyone can help?

skradel commented 3 months ago

I can only note observationally that it is not thread-safe -- it is trivial to create a case where HLL throws NPE, or the underlying fastutil library fails on a precondition check, during concurrent updates.