RuntimeDeviceTracker DeepyCopy is better optimized.
The DeepCopy method is used when a ScopedGlobalRuntimeDeviceTracker is constructed. This in turn causes the rebuilding of the device names and states which isn't a free operation. Now we copy the already computed information. This was noticeable when using ArrayHandleTransform since it uses ScopedGlobalRuntimeDeviceTracker when construction host side portals.
Showing with 45 additions and 32 deletions