diff options
author | Derek Murray <mrry@google.com> | 2016-12-22 13:27:51 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-12-22 13:47:48 -0800 |
commit | aa112f20647acd2298e3752cea7e370d5841b032 (patch) | |
tree | ee1b1b288240f2407148f953724eecc76c579ecc /util/python | |
parent | 9e3b3aafb65ddab7dfb6130af9e1e7bb5121c46d (diff) |
Optimize the case of a master communicating with an in-process worker.
This change modifies the GrpcWorkerCache so that, when a master
attempts to communicate with the worker in the same process, it does
so by direct method calls on a `WorkerInterface*`, without making a
loopback RPC call.
This change is another incremental step towards addressing issue
#6256. There are further improvements possible, and we will continue
to investigate them, including:
* Avoiding the protobuf encoding/decoding for request/response objects
where this affects performance. The zero-copy `TensorResponse` class
is an example of how we could improve performance here, for
`RunGraphRequest` and `RunGraphResponse` objects.
* Profiling the closure creation/context switch overhead for
interactions with the local worker.
Change: 142793965
Diffstat (limited to 'util/python')
0 files changed, 0 insertions, 0 deletions