hugo/helpers
Bjørn Erik Pedersen 5e0947c5b5 helpers: Make UniqueStringsReuse allocation free
This should be faster for all of our use cases (small string slices), but more important, it makes UniqueStringsReuse allocation free.

```bash
name                                 old time/op    new time/op    delta
UniqueStrings/Safe-16                   776ns ± 0%     305ns ± 0%   -60.68%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16            621ns ± 3%     174ns ± 0%   -72.01%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16     319ns ± 4%     313ns ± 0%    -2.01%  (p=0.029 n=4+4)

name                                 old alloc/op   new alloc/op   delta
UniqueStrings/Safe-16                    224B ± 0%      128B ± 0%   -42.86%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16            96.0B ± 0%      0.0B       -100.00%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16     24.0B ± 0%     24.0B ± 0%      ~     (all equal)

name                                 old allocs/op  new allocs/op  delta
UniqueStrings/Safe-16                    7.00 ± 0%      1.00 ± 0%   -85.71%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16             6.00 ± 0%      0.00       -100.00%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16      1.00 ± 0%      1.00 ± 0%      ~     (all equal)
```
2021-11-17 10:44:03 +01:00
..
content.go Bump all long-living deprecations to ERRORs 2021-07-25 17:17:21 +02:00
content_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
docshelper.go all: Format code with gofumpt 2020-12-03 13:12:58 +01: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 helpers: Make UniqueStringsReuse allocation free 2021-11-17 10:44:03 +01:00
general_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
path.go Fix Cloudflare vs Netlify cache dir issue 2021-06-30 12:58:43 +02:00
path_test.go Split out the puthe path/filepath functions into common/paths 2021-06-18 10:55:00 +02:00
pathspec.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
pathspec_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
processing_stats.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
testhelpers_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
url.go Split out the puthe path/filepath functions into common/paths 2021-06-18 10:55:00 +02:00
url_test.go Split out the puthe path/filepath functions into common/paths 2021-06-18 10:55:00 +02:00