mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 19:21:26 +00:00
a03c631c42
This is a big commit, but it deletes lots of code and simplifies a lot. * Resolving the template funcs at execution time means we don't have to create template clones per site * Having a custom map resolver means that we can remove the AST lower case transformation for the special lower case Params map Not only is the above easier to reason about, it's also faster, especially if you have more than one language, as in the benchmark below: ``` name old time/op new time/op delta SiteNew/Deep_content_tree-16 53.7ms ± 0% 48.1ms ± 2% -10.38% (p=0.029 n=4+4) name old alloc/op new alloc/op delta SiteNew/Deep_content_tree-16 41.0MB ± 0% 36.8MB ± 0% -10.26% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Deep_content_tree-16 481k ± 0% 410k ± 0% -14.66% (p=0.029 n=4+4) ``` This should be even better if you also have lots of templates. Closes #6594 |
||
---|---|---|
.. | ||
check.go | ||
check_darwin.go | ||
commandeer.go | ||
commands.go | ||
commands_test.go | ||
config.go | ||
convert.go | ||
deploy.go | ||
env.go | ||
gen.go | ||
genautocomplete.go | ||
genchromastyles.go | ||
gendoc.go | ||
gendocshelper.go | ||
genman.go | ||
helpers.go | ||
hugo.go | ||
hugo_test.go | ||
hugo_windows.go | ||
import_jekyll.go | ||
import_jekyll_test.go | ||
limit_darwin.go | ||
limit_others.go | ||
list.go | ||
list_test.go | ||
mod.go | ||
new.go | ||
new_content_test.go | ||
new_site.go | ||
new_theme.go | ||
release.go | ||
release_noop.go | ||
server.go | ||
server_errors.go | ||
server_test.go | ||
static_syncer.go | ||
version.go |