Commit df48eafe authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

[tf.data] Avoid copying `std::shared_ptr<model::Model>` on hot paths.

This improves the performance of the `Dataset.range()` benchmark with
and without modeling enabled:

* Average time per element (without modeling): 110.381937 nanoseconds
  (was 124.318142 nanoseconds)
* Average time per element (with modeling): 498.648620 nanoseconds
  (was 584.610391 nanoseconds)

PiperOrigin-RevId: 220680272
parent 5d5b912c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment