aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/hash
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-10-31 14:05:26 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-31 15:19:26 -0700
commit12629a0a754d274cf1262f09db0290c6782e0adb (patch)
treee783861a355caff77e77988fde35d4dd525874f4 /tensorflow/core/lib/hash
parent01948f6bcaf6805e98be0b7194fac9fd6e41b2ef (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.h3
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));