hugo/helpers
Bjørn Erik Pedersen ed7e250068 helpers: Avoid url.Parse in RelURL and AbsURL if we can
```
RelURL-10            159ns ± 5%      18ns ± 4%   -88.89%  (p=0.029 n=4+4)
AbsURL/relurl-10     532ns ± 0%     537ns ± 0%    +1.09%  (p=0.029 n=4+4)
AbsURL/absurl-10     142ns ± 0%       4ns ± 3%   -96.91%  (p=0.029 n=4+4)

name              old alloc/op   new alloc/op   delta
RelURL-10             144B ± 0%        0B       -100.00%  (p=0.029 n=4+4)
AbsURL/relurl-10      544B ± 0%      544B ± 0%      ~     (all equal)
AbsURL/absurl-10      144B ± 0%        0B       -100.00%  (p=0.029 n=4+4)

name              old allocs/op  new allocs/op  delta
RelURL-10             1.00 ± 0%      0.00       -100.00%  (p=0.029 n=4+4)
AbsURL/relurl-10      10.0 ± 0%      10.0 ± 0%      ~     (all equal)
AbsURL/absurl-10      1.00 ± 0%      0.00       -100.00%  (p=0.029 n=4+4)
```
2023-06-12 16:15:59 +02:00
..
content.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
content_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
docshelper.go deps: Udpate to github.com/alecthomas/chroma/v2 2022-06-14 14:08:40 +02:00
emoji.go Update emoji import paths and version 2020-12-30 22:46:19 +01:00
emoji_test.go Update emoji import paths and version 2020-12-30 22:46:19 +01:00
general.go all: Fix comments for exported functions and packages 2023-05-18 21:25:27 +02:00
general_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
path.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
path_test.go helpers: simplify path tests with T.TempDir 2023-05-16 18:35:19 +02:00
pathspec.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
processing_stats.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
testhelpers_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
url.go helpers: Avoid url.Parse in RelURL and AbsURL if we can 2023-06-12 16:15:59 +02:00
url_test.go Adjust benchmarks 2023-06-12 16:06:11 +02:00