Uh oh!
There was an error while loading. Please reload this page.
Hash up to 8 bytes at once with FxHasher - #51019
Conversation
kennytm
commented
May 24, 2018
@bors try Let's do a perf check. cc @Mark-Simulacrum |
bors
commented
May 24, 2018
Hash up to 8 bytes at once with FxHasher r? @michaelwoerister
| unsafe { | ||
| assert!(size_of::<usize>() <= 8); | ||
| while bytes.len() >= size_of::<usize>() { | ||
| self.add_to_hash(*(bytes.as_ptr() as *const usize)); |
There was a problem hiding this comment.
This could cause unaligned reads.
michaelwoerister
commented
May 24, 2018
@kennytm Can we restart that try build with the latest version of the PR? |
@bors try |
bors
commented
May 24, 2018
Hash up to 8 bytes at once with FxHasher r? @michaelwoerister
bors
commented
May 24, 2018
☀️ Test successful - status-travis |
michaelwoerister
commented
May 24, 2018
Thanks, @kennytm! |
leoyvens
commented
May 24, 2018
The hash implementation has been moved to an external crate, could we move this PR over to it's new home? |
michaelwoerister
commented
May 25, 2018
Looks good to me. cc @nnethercote |
kennytm
commented
May 25, 2018
@Zoxc As mentioned in #51019 (comment), the FxHasher implementation has been moved out to Could you instead:
|
Zoxc
commented
May 27, 2018
I've opened a PR to |
michaelwoerister
commented
May 28, 2018
Version |
Zoxc
commented
May 28, 2018
This now updates the |
michaelwoerister
commented
May 29, 2018
bors
commented
May 29, 2018
📌 Commit 7ebd4d6 has been approved by |
bors
commented
May 29, 2018
Hash up to 8 bytes at once with FxHasher r? @michaelwoerister
bors
commented
May 29, 2018
☀️ Test successful - status-appveyor, status-travis |
r? @michaelwoerister