mkdocs-material/material
Oleh Prypin 81a13f6bc6
Optimized nested navigation rendering: don't cross template boundary (#2213)
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.
2021-01-17 10:38:03 +01:00
..
.icons Added distribution files 2020-12-22 12:45:19 +01:00
assets Added documentation for native Mermaid integration (experimental) 2021-01-02 15:55:31 +01:00
overrides Removed ResizeObserver polyfill due to decent browser support 2021-01-01 17:16:24 +01:00
partials Optimized nested navigation rendering: don't cross template boundary (#2213) 2021-01-17 10:38:03 +01:00
__init__.py Make theme installable 2017-01-02 08:58:18 +01:00
404.html Fixed Disqus integration being shown on 404 pages 2021-01-09 13:14:42 +01:00
base.html Prepare 6.2.4 release 2021-01-09 13:43:17 +01:00
main.html Removed default announcement bar from main template 2020-02-14 15:07:41 +01:00
mkdocs_theme.yml Fixed error when only setting a single icon 2020-03-11 11:24:40 +01:00