<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dispatch on rustbites</title><link>https://www.rustbites.com/tags/dispatch/</link><description>Recent content in Dispatch on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 13 Jun 2026 13:03:59 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/dispatch/index.xml" rel="self" type="application/rss+xml"/><item><title>199. Static Dispatch — Generics Beat Box&lt;dyn Trait&gt; When You Can Afford the Code</title><link>https://www.rustbites.com/posts/bite-199/</link><pubDate>Sat, 13 Jun 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-199/</guid><description>&lt;p&gt;&lt;code&gt;Box&amp;lt;dyn Trait&amp;gt;&lt;/code&gt; is the reflex when a function &amp;ldquo;takes something that implements a trait.&amp;rdquo; But every call through it pays for a vtable hop the compiler can&amp;rsquo;t see past. Swap it for a generic and the optimizer inlines the whole thing.&lt;/p&gt;</description></item></channel></rss>