Hacker News new | ask | show | jobs
by kouteiheika 1884 days ago
So are there any plans to eventually contribute this to the standard library, e.g. just like hashbrown was?
1 comments

The author discusses this in the corresponding /r/rust thread:

https://www.reddit.com/r/rust/comments/mvc6o5/incredibly_fas...

tl;dr: it's not straightforward, mostly because the standard functionality lives in `core` which doesn't have access to OS support for CPU feature detection.

Does Rust allow for libraries to “override” core functionality when available?
If it was all userspace Rust, it would have been possible to choose the implementation at compile time conditional on the presence of std.