pytorch/test/cpp
Alex Beloi a38e43e936 [perf][1/5] Replace IValue::toString()->string() with IValue::toStringRef() (#85437)
Summary: `IValue::toString()` creates a `new c10::intrusive_ptr` (like `std::shared_ptr`) and `->string()` immediately accesses it, creating an atomic reference increment/decrement. We can skip both of these operations by calling `IValue::toStringRef()`.

Test Plan: CI

Reviewed By: jaybean-dev

Differential Revision: D39605242

Pull Request resolved: https://github.com/pytorch/pytorch/pull/85437
Approved by: https://github.com/jfix71
2022-09-23 23:36:57 +00:00
..
api Handle implicit real->complex casting for backward of stack (#84993) 2022-09-19 21:20:34 +00:00
c10d [2/N] [Dispatchable Collectives] Extract ProcessGroup::Work into a separate class and update references (#83680) 2022-09-14 13:05:58 +00:00
common
dist_autograd
jit [perf][1/5] Replace IValue::toString()->string() with IValue::toStringRef() (#85437) 2022-09-23 23:36:57 +00:00
lazy empty strided symint (#84830) 2022-09-15 04:09:43 +00:00
lite_interpreter_runtime Back out "Back out "[profiling] Adding targets file for test_mobile_profiler"" (#82243) 2022-07-28 23:08:52 +00:00
monitor
profiler Add SOFT_ASSERT to gracefully recover from invariant violations (#82689) 2022-08-10 00:58:07 +00:00
rpc
tensorexpr Delete SymIntArrayRef wrapper struct (#84837) 2022-09-12 20:04:01 +00:00
__init__.py