From 12629a0a754d274cf1262f09db0290c6782e0adb Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 31 Oct 2016 14:05:26 -0800 Subject: 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 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 --- tensorflow/core/lib/hash/hash.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'tensorflow/core/lib/hash') 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(x); } -}; struct HashStr { size_t operator()(const string& s) const { return static_cast(Hash64(s)); -- cgit v1.2.3