4 ms·
All the use cases I've seen are about optimization. You can avoid a lot of copying and memory management if you know the value will be used a single time, and
by marcosdumay 6y ago
All the use cases I've seen are about optimization.
You can avoid a lot of copying and memory management if you know the value will be used a single time, and then generate another value, that will be used a single time again. It has a very large potential impact, mostly on IO.
- adamnemecek 6y agoIt’s not just optimization but also correctness. You really don’t want do a bit wise copy of say a file descriptor.