jupyter / papyri

MIT License
84 stars 17 forks source link

Extract url resolving out of jinja template. #359

Closed Carreau closed 9 months ago

Carreau commented 9 months ago

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 commented 9 months ago

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