notfilippo opened a new pull request, #398: URL: https://github.com/apache/datasketches-rust/pull/398
When a dense HLL8 sketch merges into one with fewer registers, several source registers map to the same destination. For example, when folding 32 registers into 16, source registers `0` and `16` both map to destination register `0`. Instead of computing the destination index for every register, the merge now reads the source in blocks the size of the destination. It walks each block in order and keeps the larger rank at each position. The resulting registers and estimates are unchanged. On an M1 Max, merging 16 already-decoded `lg_k = 14` sketches into an `lg_k = 12` union and reading the estimate once took **15 µs instead of 135 µs** per set of 16 (medians over six samples). Equal-precision merges showed no clear change. -- 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]
