diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-07-13 14:47:32 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-07-13 14:49:00 +0200 |
commit | 3fbcc4b7b3c9d6f4dbf9d0073430b096d4a92249 (patch) | |
tree | e3f65eeac6cec1f6cd78f8709e3625ff84204e76 /main.go | |
parent | 223bf2800488ad5d38854bbb595d789bc35ebe32 (diff) | |
download | hugo-fix/layoutcache.tar.gz hugo-fix/layoutcache.zip |
Cache when not found in LookupLayoutfix/layoutcache
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)
```
Diffstat (limited to 'main.go')
0 files changed, 0 insertions, 0 deletions