Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff django rule #512

Merged
merged 5 commits into from
Jul 20, 2024
Merged

Ruff django rule #512

merged 5 commits into from
Jul 20, 2024

Conversation

jelly
Copy link
Member

@jelly jelly commented Jul 20, 2024

No description provided.

jelly added 5 commits July 20, 2024 14:50
We request all pgp_key's in a loop which would lead to 100 queries,
prefetching the userprofile makes the page load with 26 queries as of
writing.
The rebuilderd status is only shown for logged in users so fetching this
is unneeded.
An inclusion_tag renders a template on every request, for the glibc page
this meant calling Template.render() 7529 times(!) and loading ~ 5
seconds on my AMD Ryzen 7 5700X 8 Core. With this change we now do 3629
Template.render calls in 500 ms.
@jelly jelly merged commit 8d07c92 into archlinux:master Jul 20, 2024
1 check passed
@jelly jelly deleted the ruff-django-rule branch July 20, 2024 15:19
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.

1 participant