4 ms·
> How much advantage is there to rust implementation vs c++ if unsafe is used so liberally? I'm no expert on the topic. IIRC, Rust does not have the same kind/
by killercup 10y ago
> How much advantage is there to rust implementation vs c++ if unsafe is used so liberally?
I'm no expert on the topic. IIRC, Rust does not have the same kind/amount of unspecified behavior as C/C++ do.
FYI: This is a "highly optimized version of SeaHash" (see comment in first line) with "optimized" meaning fiddling with raw pointers. You can find a version without any unsafe code is in `reference.rs`. I have no idea how fast the reference implementation is.