notfilippo opened a new issue, #385:
URL: https://github.com/apache/datasketches-rust/issues/385

   I compared DataSketches HLL with DataFusion’s custom `approx_distinct` 
accumulator to get a comparison on a real workload. DataSketches showed promise 
with many small groups, but it allocated for every new sketch and took about 3Ă— 
as long for a single dense group of values.
   
   I prototyped three changes: store the first few coupons inline, hash raw 
bytes without the streaming buffer, and let callers skip maintaining the HIP 
estimator when they only need a composite estimate.
   
   Local benchmarks on about 400,000 Arrow rows, with each backend doing its 
own hashing:
   
   | Workload | DataSketches before | DataSketches after | DataFusion in the 
after runs |
   | --- | ---: | ---: | ---: |
   | 50,000 groups, `Int64` | 18.65 ms | 8.58 ms | 19.98 ms |
   | 50,000 groups, `Utf8` | 22.68 ms | 9.24 ms | 18.10 ms |
   | One dense group, `Int64` | 2.81 ms | 0.98 ms | 0.87 ms |
   | One dense group, `Utf8` | 4.12 ms | 1.37 ms | 1.23 ms |
   
   Will create the PRs shortly.


-- 
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