News for hackers. Stuff that matters.
Re:When zero cost abstractions aren't zero cost by WiSaGaN on Tuesday August 10, 2021 @02:10AM (#28125603)
According to this comment: https://old.reddit.com/r/rust/comments/p0ul6b/when_zero_cost... , `rustc`/`llvm` is indeed able to optimize the wrapped example to a big `memset`. Sure in this specific case, it is different from the first one which delayed the zeroing, but that is not unintelligently `clone` many times as claimed in the article.

There are no comments on this comment yet.