3 ms·
Copying data is among the fastest operations possible on a modern computer bus. Not a thing to worry much about.
by JoeAltmaier 7y ago
Copying data is among the fastest operations possible on a modern computer bus. Not a thing to worry much about.
- sjwright 7y agoSure, until your typical workload involves billions of them.
- JoeAltmaier 7y agoNope. If its a fraction of the processing you do (including loops, calculations and tests) then its negligible. Because you do billions of those things too, and they will dominate the time-cost. The case in point, subroutine calls, the call itself is far costlier than the argument copying. So in this case, data moving is almost completely irrelevant.