hugo:fix/layoutcache

Last commit made on 2022-07-13
Get this branch:
git clone -b fix/layoutcache https://git.launchpad.net/hugo

Branch merges

Branch information

Name:
fix/layoutcache
Repository:
lp:hugo

Recent commits

3fbcc4b... by Bjørn Erik Pedersen

Cache when not found in LookupLayout

Very visible when using the pprof mutex profiler.

```bash
name old time/op new time/op delta
Baseline-10 58.4ms ± 1% 51.6ms ± 0% -11.56% (p=0.029 n=4+4)

name old alloc/op new alloc/op delta
Baseline-10 64.3MB ± 0% 64.2MB ± 0% ~ (p=0.114 n=4+4)

name old allocs/op new allocs/op delta
Baseline-10 649k ± 0% 649k ± 0% ~ (p=0.229 n=4+4)
```

223bf28... by Bjørn Erik Pedersen

parser/pageparser: Don't store the byte slices

On its own this change doesn't do any magic, but this is part of a bigger picture about making Hugo leaner in the
memory usage department.

72b0ccd... by Bjørn Erik Pedersen

Make the baseline benchmark's test files stable

And add some assertions.

65e52a7... by Bjørn Erik Pedersen

Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'

bdf935d... by Bjørn Erik Pedersen

Squashed 'docs/' changes from 30f32a624..e5aa641a6

e5aa641a6 remove erroneous foo
8307b474e Add hl_inline to highlight function documentation
8517b02d9 update GitHub 404 docs URL to prevent redirect
5c52c2715 remove aerobatic.com
3eb179558 Update syntax-highlighting.md
00cbe3f2f Check for nil Chroma .Aliases
45416515e netlify: Hugo 0.101.0
d5dcd1581 docs: Regen docshelper
4785e99b1 common: Add hugo.GoVersion
e679f1b7e resources/page: Add :slugorfilename attribute
f2cc72a1f Update spellcheck.yml (#1755)

git-subtree-dir: docs
git-subtree-split: e5aa641a629ce70de609a006fb9a57ee422922f5

8ebcaa5... by Anthony Fok

Accept vendor-specified build date if .git/ is unavailable

Fixes #10053

2414819... by Anthony Fok

snap: Replace mage with "go build" and set VendorInfo=snap

5caed8a... by Anthony Fok

snap: Use interface names etc-gitconfig and gitconfig, Take 2

as recommended by @alexmurray to keep consistency with other snaps; see
https://forum.snapcraft.io/t/system-files-and-personal-files-request-for-hugo/30598

I neglected to make the rename of system-gitconfig → etc-gitconfig and
user-gitconfig → gitconfig to the apps.plugs section in commit fd3953c,
hence this commit to fix the store upload scan failure:

  interface 'system-gitconfig' not found in base declaration
  interface 'user-gitconfig' not found in base declaration
  unknown plugs interface name reference 'system-gitconfig'
  unknown plugs interface name reference 'user-gitconfig'

Special thanks to Alex Murray and Igor Ljubuncic for approving the
system-files and personal-files request for Hugo.

Fixes #6226

d1278f6... by Bjørn Erik Pedersen

Extract the baseline benchmark to a test

92f31ae... by Bjørn Erik Pedersen

Add a baseline benchmark