<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hints on rustbites</title><link>https://www.rustbites.com/tags/hints/</link><description>Recent content in Hints on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 19 Apr 2026 17:41:31 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/hints/index.xml" rel="self" type="application/rss+xml"/><item><title>90. black_box — Stop the Compiler From Erasing Your Benchmarks</title><link>https://www.rustbites.com/posts/bite-090/</link><pubDate>Sun, 19 Apr 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-090/</guid><description>&lt;p&gt;Your benchmark ran in 0 nanoseconds? Congratulations — the compiler optimised away the code you were trying to measure. &lt;code&gt;std::hint::black_box&lt;/code&gt; prevents that by hiding values from the optimiser.&lt;/p&gt;</description></item><item><title>89. cold_path — Tell the Compiler Which Branch Won't Happen</title><link>https://www.rustbites.com/posts/bite-089/</link><pubDate>Sat, 18 Apr 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-089/</guid><description>&lt;p&gt;Your error-handling branch fires once in a million calls, but the compiler doesn&amp;rsquo;t know that. &lt;code&gt;core::hint::cold_path&lt;/code&gt; lets you mark unlikely branches so the optimiser can focus on the hot path.&lt;/p&gt;</description></item></channel></rss>