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

Extract url resolving out of jinja template. #359

Merged
merged 6 commits into from
Dec 21, 2023
Merged

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Dec 21, 2023

Jinja template used to to a bunch of url resolving from RefInfo.

This was hard to profile in general.

So we try to pull out url resolving outside of Jinja.

With that we can also remove a bunch of unreachable template, and cache the url resolving.

This make papyri render quite faster as the bottleneck rendering the navigation at the top off the page that is shared across many pages.

Hopefully this will also speedup CI.

@Carreau
Copy link
Member Author

Carreau commented Dec 21, 2023

That get the rendering down to ~2min from ~15 before :-P

@Carreau Carreau merged commit 7a55d00 into jupyter:main Dec 21, 2023
11 of 12 checks passed
@Carreau Carreau deleted the fastref branch December 25, 2023 11:29
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