News for hackers. Stuff that matters.
Re:Data-driven performance optimization with Rust and Miri by ttfkam on Friday December 09, 2022 @12:13PM (#33923802)
I don't understand why you felt the need to point this out when the linked article explicitly mentioned it.

> Important note: Miri is not intended to accurately replicate optimized Rust runtime code. Optimizing for Miri can sometimes make your real code slower, and vice versa. It’s a helpful tool to guide your optimization, but you should always benchmark your changes with release builds, not with Miri.

Re:Data-driven performance optimization with Rust and Miri by Tobu on Friday December 09, 2022 @02:36PM (#33925584)
The author was gently panned when this was originally posted on Reddit, and they added that note, but now that the article is being reposted uncritically where people may not know the difference, it's worth pointing out again. The way the author got a profile out of Miri is creative, but Miri was never a helpful guide for profiling, it seems that the second benchmark they used for confirmation was also unoptimised (run without --release which is a rookie mistake). Then they got wrong conclusions from flawed observations about the costs of abstractions like range.contains.
Re:Data-driven performance optimization with Rust and Miri by IshKebab on Friday December 09, 2022 @01:13PM (#33924544)
I think they undersell the difference. You'd be laughed out of the room if you profiled debug code.