Hey Thanks Matt!The Builder classes are pretty cool for deserializing.Thanks for prompt response
You received this message because you are subscribed to a topic in the Google Groups "stream-lib-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stream-lib-user/jLDVn27ZYPE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stream-lib-us...@googlegroups.com.
This PR is intended to replace: #70
It supports serialization of HyperLogLog objects using the (relatively) terse Externalizable format, but
without any of the unpleasant requirements that would otherwise be imposed on it. (public no-arg
constructor, inability to use final fields, public methods read/ write object methods that affect the private
state). Full disclosure is that it does generate this holder class as extra garbage, but it is tiny and
I make up for it (see next paragraph). It does also theoretically affect the overhead of writing the class
name during invocation of externalizable (the inner class has a longer fully qualified class name), but
people using externalizable are presumably already are aware of such risks.
I also fixed a rather unfortunate waste in both the existing and newly added deserialization options
where the byte array would make a nearly full copy of itself after reading only 8 bytes for log2m and
length prefix.