Commit 007670a6 authored by Dilip Joseph's avatar Dilip Joseph Committed by Facebook Github Bot

Revert D8304491: [folly] Use folly Hash to hash strings in dynamic

Differential Revision:
D8304491

Original commit changeset: 9988e9012c31

fbshipit-source-id: cc88b31cfb65e3dbc0a2b8f7fbcc565a28a796f9
parent e96aa455
...@@ -315,8 +315,11 @@ std::size_t dynamic::hash() const { ...@@ -315,8 +315,11 @@ std::size_t dynamic::hash() const {
return std::hash<double>()(getDouble()); return std::hash<double>()(getDouble());
case BOOL: case BOOL:
return std::hash<bool>()(getBool()); return std::hash<bool>()(getBool());
case STRING: case STRING: {
return Hash()(getString()); // keep it compatible with FBString
const auto& str = getString();
return ::folly::hash::fnv32_buf(str.data(), str.size());
}
} }
assume_unreachable(); assume_unreachable();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment