commit | eb30829215e18d83b183203cbe10a956fada75db | [log] [tgz] |
---|---|---|
author | Adenilson Cavalcanti <adenilson.cavalcanti@arm.com> | Wed May 15 18:41:47 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed May 15 18:41:47 2019 |
tree | 66b9ce62d28f4f8488f78538f47b5c1964b5383c | |
parent | 3d9041cb4790eb3a15d3843a3a047e02a4a2a5bd [diff] |
Adding FastHash() function The objective is to provide a fast and high quality hash for general use that will exploit the hardware features of the running CPU. It is warranted to be high quality and top speed, but it is prone to be updated when a newer/faster hash function is publicly available. There are *no warranties* that the hash generated will be the same on all CPUs (e.g. ARM x Intel) or build target (e.g. 32-bit vs 64-bit). For such cases, use PersistentHash() instead. It is also a non-cryptographic hash, therefore, use it when speed is most important. For now, it is powered by the latest version of CityHash on both ARM/Intel and is the same version (i.e. City32() x City64()) depending on now Chromium was built (32-bit app or 64-bit). Plus migrate server-side *independent* client code to use base::FastHash that was using deprecated CityHash. Bug: 902789 Change-Id: If38169b8f3a7f22f667efef8576fb28b3130d644 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1575082 Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org> Cr-Commit-Position: refs/heads/master@{#660041}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .