notfilippo opened a new pull request, #395:
URL: https://github.com/apache/datasketches-rust/pull/395

   A new HLL sketch now keeps its eight coupon slots inside the sketch instead 
of allocating a separate list. This avoids one allocation per group when you 
have many groups with only a few distinct values each. On Apple silicon, an 
empty sketch goes from 88 bytes plus a 32-byte heap allocation to 56 bytes with 
no heap allocation.
   
   The tradeoff is that a sketch needs one extra allocation if it grows dense. 
`estimated_size()` counts that allocation and reports zero heap bytes while the 
sketch is still in LIST mode. The thresholds for switching modes and the 
serialized format stay the same.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to