<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi" -->

---
title: How I made Rustdoc 33% faster in one week | daily.dev
description: A Rustdoc team member details a series of four PRs that collectively made Rustdoc 25% faster in wall-time (equivalent to a 33% speedup), with up to 40% gains...
canonical: https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How I made Rustdoc 33% faster in one week | daily.dev
og:description: A Rustdoc team member details a series of four PRs that collectively made Rustdoc 25% faster in wall-time (equivalent to a 33% speedup), with up to 40% gains...
og:url: https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi
og:image: https://api.daily.dev/og/posts/tZoO3GcFi.png
og:image:alt: How I made Rustdoc 33% faster in one week
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I made Rustdoc 33% faster in one week

**[Lobsters](https://daily.dev/sources/lobsters)** · 12 min read · 4 upvotes · 0 comments

## Summary

A Rustdoc team member details a series of four PRs that collectively made Rustdoc 25% faster in wall-time (equivalent to a 33% speedup), with up to 40% gains on real-world crates like hyper and bitmaps. The investigation began from a strange stack-overflow regression reported via Rust's Crater tool, which led to discovering that Rustdoc was inlining trait impls before filtering out unneeded ones. Fixes included filtering impls before calling the expensive build_impl function, skipping primitive-impl inlining logic for crates without primitives, only synthesizing auto/blanket impls for documented types, and avoiding unnecessary param_env normalization by examining only the 'head' of a self type. The improvements are already on nightly and will land on stable in Rust 1.99.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://noahlev.org/blog/2026/08/27/making-rustdoc-faster>

## Questions this post answers

### Why was Rustdoc slow when handling large dependency graphs with many trait impls?

Rustdoc's build_extern_trait_impls pass iterated through every trait impl in a crate's entire dependency graph and called the expensive build_impl function on each one before filtering out impls that wouldn't actually be displayed. Filtering impls first, before calling build_impl, produced a 20% average wall-time improvement and a 12% reduction in peak memory usage in Rust's Rustdoc tool.

_Track compiler and tooling performance work like this Rustdoc optimization on daily.dev._

### How much faster is Rustdoc after the recent performance PRs and when does it ship?

Rustdoc became 33% faster on average (a 25% wall-time reduction) after four PRs targeting trait impl filtering, primitive impl handling, synthetic impl generation, and param_env normalization for self types. Some real-world crates like hyper and bitmaps saw up to 40% improvement. The changes are already on nightly and will land on stable in Rust 1.99.

_Developers tracking Rust toolchain speed improvements can follow releases like this on daily.dev._

### Why does Rustdoc show a notable trait tooltip for Write on a function returning Vec<u8>?

This happened because Rustdoc's trait impl inlining followed the generic Vec<T> to &[T] Deref impl, causing &[u8]'s Write implementation to get loaded into Rustdoc's context, which made the notable-trait tooltip appear even though the inlining code never explicitly checked for #[doc(notable_trait)] status. This was an accidental pass rather than intentional behavior.

_Rust developers debugging doc tooling quirks can follow deep technical breakdowns like this on daily.dev._

## Similar posts on daily.dev

- [How to speed up the Rust compiler in July 2026](https://daily.dev/posts/how-to-speed-up-the-rust-compiler-in-july-2026-rsrjhr5xg) · Lobsters · 2 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How I made Rustdoc 33% faster in one week","url":"https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi"},"datePublished":"2026-08-28T20:26:39.669Z","dateModified":"2026-09-14T07:08:34.676Z","description":"A Rustdoc team member details a series of four PRs that collectively made Rustdoc 25% faster in wall-time (equivalent to a 33% speedup), with up to 40% gains...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ad9e90302a2c9e398aca74fcfca49633?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ad9e90302a2c9e398aca74fcfca49633?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,rust","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"How I made Rustdoc 33% faster in one week"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-i-made-rustdoc-33-faster-in-one-week-tzoo3gcfi#faq","mainEntity":[{"@type":"Question","name":"Why was Rustdoc slow when handling large dependency graphs with many trait impls?","acceptedAnswer":{"@type":"Answer","text":"Rustdoc's build_extern_trait_impls pass iterated through every trait impl in a crate's entire dependency graph and called the expensive build_impl function on each one before filtering out impls that wouldn't actually be displayed. Filtering impls first, before calling build_impl, produced a 20% average wall-time improvement and a 12% reduction in peak memory usage in Rust's Rustdoc tool. Track compiler and tooling performance work like this Rustdoc optimization on daily.dev."}},{"@type":"Question","name":"How much faster is Rustdoc after the recent performance PRs and when does it ship?","acceptedAnswer":{"@type":"Answer","text":"Rustdoc became 33% faster on average (a 25% wall-time reduction) after four PRs targeting trait impl filtering, primitive impl handling, synthetic impl generation, and param_env normalization for self types. Some real-world crates like hyper and bitmaps saw up to 40% improvement. The changes are already on nightly and will land on stable in Rust 1.99. Developers tracking Rust toolchain speed improvements can follow releases like this on daily.dev."}},{"@type":"Question","name":"Why does Rustdoc show a notable trait tooltip for Write on a function returning Vec\u003cu8\u003e?","acceptedAnswer":{"@type":"Answer","text":"This happened because Rustdoc's trait impl inlining followed the generic Vec\u003cT\u003e to \u0026[T] Deref impl, causing \u0026[u8]'s Write implementation to get loaded into Rustdoc's context, which made the notable-trait tooltip appear even though the inlining code never explicitly checked for #[doc(notable_trait)] status. This was an accidental pass rather than intentional behavior. Rust developers debugging doc tooling quirks can follow deep technical breakdowns like this on daily.dev."}}]}
```

