diff options
author | 2016-10-31 14:05:26 -0800 | |
---|---|---|
committer | 2016-10-31 15:19:26 -0700 | |
commit | 12629a0a754d274cf1262f09db0290c6782e0adb (patch) | |
tree | e783861a355caff77e77988fde35d4dd525874f4 /tensorflow/core/lib/hash | |
parent | 01948f6bcaf6805e98be0b7194fac9fd6e41b2ef (diff) |
Use gtl::FlatMap and gtl::FlatSet in several places instead of
std::unordered_map and std::unordered_set.
Add default template argument of std::hash<Key> to gtl::FlatMap and gtl::FlatSet
to better match std::unordered_{map,set}
Improves performance on an RPC-intensive benchmark by ~0.4%
Change: 137754417
Diffstat (limited to 'tensorflow/core/lib/hash')
-rw-r--r-- | tensorflow/core/lib/hash/hash.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tensorflow/core/lib/hash/hash.h b/tensorflow/core/lib/hash/hash.h index 4e64c90d62..6f965928c7 100644 --- a/tensorflow/core/lib/hash/hash.h +++ b/tensorflow/core/lib/hash/hash.h @@ -43,9 +43,6 @@ inline uint64 Hash64Combine(uint64 a, uint64 b) { } // Convenience Hash functors -struct HashInt64 { - size_t operator()(int64 x) const { return static_cast<size_t>(x); } -}; struct HashStr { size_t operator()(const string& s) const { return static_cast<size_t>(Hash64(s)); |