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

   If you already have a byte slice, you can now pass it straight to 
`Coupon::from_bytes(bytes)`. It gives you the same coupon as 
`Coupon::from_value(raw_bytes::from_slice(bytes))`, even for an empty slice. 
Both calls now read the last few bytes in larger pieces. `from_bytes` also 
skips a copy because it has the whole input.
   
   On an M1 Max, building an HLL8 sketch from 69,354 nonempty ClickBench search 
phrases used 10% less CPU time with the existing call and 28% less with 
`from_bytes`, both compared with `main`. Fixed eight-byte keys showed no 
measurable gain: the compiler already handles those well.
   


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