hugo/helpers
Bjørn Erik Pedersen d5eda13cb2 Replace the MD5 hashing of images with xxHash
Note that we only use this for change detection.

The previous implementation invoked `MD5FromReaderFast` that created a MD5 has from 8 64 bytes chunks in the file, which is obviously very fast. The new implementation creates the hash from the entire file and ... seems to be even more effective:

```
name          old time/op    new time/op    delta
HashImage-10    9.45µs ±21%   10.89µs ± 1%     ~     (p=0.343 n=4+4)

name          old alloc/op   new alloc/op   delta
HashImage-10      144B ± 0%        8B ± 0%  -94.44%  (p=0.029 n=4+4)

name          old allocs/op  new allocs/op  delta
HashImage-10      4.00 ± 0%      1.00 ± 0%  -75.00%  (p=0.029 n=4+4)
```
2024-07-31 16:44:06 +02:00
..
content.go Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
content_test.go Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
docshelper.go deps: Udpate to github.com/alecthomas/chroma/v2 2022-06-14 14:08:40 +02:00
emoji.go all: Remove unused code 2023-12-18 19:51:26 +01:00
emoji_test.go markdown: Pass emoji codes to yuin/goldmark-emoji 2023-10-24 12:04:13 +02:00
general.go Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
general_test.go Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
path.go all: Typo fixes 2024-04-11 09:23:17 +02:00
path_test.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
pathspec.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
processing_stats.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
testhelpers_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
url.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
url_test.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00