hugo/common
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
..
collections Implement defer 2024-06-23 11:25:47 +02:00
constants Emit a warning that can be turned off when overwriting built-in .Params values 2024-01-30 20:12:03 +01:00
hashing Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
hcontext all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
herrors Implement defer 2024-06-23 11:25:47 +02:00
hexec Add css.TailwindCSS 2024-06-25 15:48:02 +02:00
hreflect all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
hstrings Add Luminance to Color 2024-04-16 10:02:46 +02:00
htime all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
hugio Implement defer 2024-06-23 11:25:47 +02:00
hugo releaser: Prepare repository for 0.131.0-DEV 2024-07-29 14:06:20 +00:00
loggers Fix Erroridf/Warnidf mixed case issue 2024-06-22 19:01:56 +02:00
maps Implement defer 2024-06-23 11:25:47 +02:00
math all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
para common/para: Skip flaky test on CI 2023-11-28 12:23:38 +01:00
paths Implement defer 2024-06-23 11:25:47 +02:00
predicate Add a HTTP cache for remote resources. 2024-06-04 16:07:39 +02:00
rungroup all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
tasks Add a HTTP cache for remote resources. 2024-06-04 16:07:39 +02:00
terminal all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
text all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
types Add a HTTP cache for remote resources. 2024-06-04 16:07:39 +02:00
urls all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
docs.go Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00