Skip to content

Conversation

@syphar
Copy link
Member

@syphar syphar commented Nov 20, 2025

rebuilding the dashboards in datadog, this popped to my mind again:

grafik

Depending on the letter (I was digging into /c/), we have 15k or more crates in the list.

While the DB query itself could also be optimized (it's around 600ms for that letter),

I think most of the time is spent building the response in memory with askama, then then serving that.

This PR changes the endpoint to stream the result, item by item.

On top of that, I built in error reporting that will alert us if the sitemap gets too big, where would have to split into more sub-sitemaps.

@syphar syphar requested a review from a team as a code owner November 20, 2025 20:08
@syphar syphar self-assigned this Nov 20, 2025
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Nov 20, 2025
@syphar syphar merged commit b9f1b2c into rust-lang:master Nov 21, 2025
15 checks passed
@syphar syphar deleted the stream-sitemap branch November 21, 2025 10:58
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Nov 21, 2025
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants