Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
all
-
None
-
None
Description
The current HLLCounter implementation has some room to improve performance, as we find in our product environment.
- Create HLLCounter from another HLLCounter, we can copy register instead of merge
- To compute harmonic mean in the HLLCSnapshot, we could
- using table to cache all 1/2^r without computing on the fly
- remove floating addition by using integer addition in the bigger loop
- remove branch, e.g. needn't checking whether registers[i] is zero or not, although this is minor improvement.
Attachments
Attachments
Issue Links
- links to