coderfender opened a new issue, #391: URL: https://github.com/apache/datasketches-rust/issues/391
Engines that already hash a column for other reasons (for example DataFusion's vectorized `create_hashes` over Arrow arrays) currently hash each value a second time, because `Coupon::from_value` is the only way to build a coupon. In Apache Ballista that second hash costs about 3 ns per value on a default-on shuffle write path: https://github.com/apache/datafusion-ballista/pull/2868 Proposal: a `Coupon::from_hash(hash: u64)` constructor (or one taking two 64-bit halves) that takes the slot from the low bits and the register value from the leading zeros of the rest. It would be documented as not compatible with sketches built by `from_value` or by other DataSketches implementations, and meant only for callers that build and merge all of their sketches themselves. Related: #116, #385. -- 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]
