News for hackers. Stuff that matters.
Re:Memory Copy Hunting by mhh__ on Wednesday July 26, 2023 @10:37AM (#36878437)
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
Re:Memory Copy Hunting by loeg on Wednesday July 26, 2023 @10:54AM (#36878717)
> 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?

Re:Memory Copy Hunting by OfferFun6595 on Thursday July 27, 2023 @03:41AM (#36890233)
True, not all companies have a perfect data to be relied upon. Some of them are old and redundant