aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/device_name_utils.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-07-16 12:00:37 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-07-16 13:03:32 -0700
commit9c5ab6692edd870db2b22f5b5aa135cf860fff65 (patch)
tree68d0914f30d27fbf6b573279c8a9ca825637329d /tensorflow/core/util/device_name_utils.cc
parent9f2fa2ec4a68bb9e88ee20146927f84e4f9fe199 (diff)
Several small changes to reduce the number of memory allocations along
Send/Recv paths: o Allow SendOp and RecvOp implementations to directly use the string buffer contained in a Rendezvous::ParsedKey object, rather than allocating their own string object. Saves two allocations per Send/Recv pair. o Use std::move in a few places to avoid copying a std::function object. o Eliminated unused ParsedName variable declaration in DeviceNameUtils::ParseLocalName. Change: 127630066
Diffstat (limited to 'tensorflow/core/util/device_name_utils.cc')
-rw-r--r--tensorflow/core/util/device_name_utils.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/core/util/device_name_utils.cc b/tensorflow/core/util/device_name_utils.cc
index 5816dbd40c..c38b5758fa 100644
--- a/tensorflow/core/util/device_name_utils.cc
+++ b/tensorflow/core/util/device_name_utils.cc
@@ -336,7 +336,6 @@ string DeviceNameUtils::LocalName(StringPiece fullname) {
/* static */
bool DeviceNameUtils::ParseLocalName(StringPiece name, ParsedName* p) {
- ParsedName x;
if (!ConsumeDeviceType(&name, &p->type)) {
return false;
}