ekmett / hyperloglog

A constant-memory approximation of set membership
Other
24 stars 14 forks source link

Use primitive instead of vector #26

Open andrewthad opened 4 years ago

andrewthad commented 4 years ago

This library does not use slicing. Backing a hyperloglog with PrimArray instead of Data.Vector.Unboxed.Vector would save space and would make it always unpack into ByteArray# with given a bang in a data constructor (when compiling with optimizations). I can make this change if the maintainers agree.