tisonkun commented on PR #394: URL: https://github.com/apache/datasketches-rust/pull/394#issuecomment-7038840440
I explored this further and opened #396, which builds on your overlapping partial-word load technique while replacing the `[u8; 16]` tail buffer in `MurmurHash3X64128` with a `u128` register buffer (and outlining the multi-write buffering path). For single-write inputs like `raw_bytes::from_slice` and `raw_bytes::from_str`, the buffered branch folds away at compile time, eliminating the stack frame, `_memcpy` call, and store-to-load forwarding penalty directly through `Hasher::write`. That gives `Coupon::from_value(raw_bytes::from_slice(bytes))` the same register-only codegen and speedup as `Coupon::from_bytes(bytes)`, and brings the same improvement to CPC, Theta, Tuple, and FrequentItems sketches without needing a separate `from_bytes` API. Could you take a look at #396 and see if it works as a replacement for this PR on your workload? -- 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]
