I have quite some posts in my weblog (more than 2000) and was wondering, where I could make some speed improvements for the development server. It typically runs at least 30 seconds pro change. Moving posts away from from development and keeping 20 posts might help. But: When running with template metrics this is the table I get back:
Template Metrics:
cache cumulative average maximum
potential duration duration duration count template
----- ---------- -------- -------- ----- --------
0 26.156428927s 65.228002ms 105.10227ms 401 _default/home.html
41 21.1554492s 52.756731ms 90.709443ms 401 partials/pagination/posts.html
0 558.426923ms 558.426923ms 558.426923ms 1 _default/list.algolia.json
93 86.389561ms 215.435µs 376.076µs 401 partials/head/open_graph.html
100 78.326376ms 195.327µs 437.214µs 401 partials/header/navigation.html
84 69.252831ms 172.7µs 562.33µs 401 partials/head/metadata.html
100 67.956664ms 169.467µs 2.446795ms 401 partials/head/twitter.html
100 38.514878ms 96.047µs 398.436µs 401 partials/head/pagemeta.html
Do I misunderstand something or is my _default/home.html built 401 times? I would expect it to be counted once only, for the homepage? I also miss the post _default/single.html being listed. I am relatively sure my template lookup order is messed up.
My repo is here: https://github.com/davidsneighbour/samui-samui.de