4 ms·
Compilers in general aren't always perfect so if you really genuinely care about copying that much you should be inspecting and profiling the binary they output
by mhh__ 3y ago
Compilers in general aren't always perfect so if you really genuinely care about copying that much you should be inspecting and profiling the binary they output e.g. unless you have some truly massive value types (at which point my eyebrows would be raised anyway) being copied, the cost is probably going to be in the same ballpark as some other compiler-fuckups too
- loeg 3y ago> Compilers in general aren't always perfect Right. > so if you really genuinely care about copying that much you should be inspecting and profiling the binary they output Sure, but manual inspection is burdensome and unreliable. Are you advocating against just use the language-level constructs (pointers/references) that guarantee a copy isn't performed?
- OfferFun6595 3y agoTrue, not all companies have a perfect data to be relied upon. Some of them are old and redundant