mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
81a13f6bc6
The number of calls to sub-templates when rendering the navigation is O(n^2) relative to the number of pages. This is the only such instance, which is why I think this is worth optimizing. The optimization here doesn't improve the complexity, it just removes the overhead of instantiating a new Jinja template for each of these calls. E.g. for 710 pages on the site, the number of calls to Jinja's `get_template` (implying `new_context` and others) crosses a million ==(710**2)*2. They're not expensive but also not super cheap, and add up to a big percentage of overall site build times. |
||
---|---|---|
.. | ||
integrations | ||
languages | ||
footer.html | ||
header.html | ||
language.html | ||
logo.html | ||
nav-item.html | ||
nav.html | ||
palette.html | ||
search.html | ||
social.html | ||
source-date.html | ||
source.html | ||
tabs-item.html | ||
tabs.html | ||
toc-item.html | ||
toc.html |