hugo/resources
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
..
assets Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
images Switch EXIF library 2024-07-20 15:56:10 +02:00
internal identity: Use xxHash in hashstructure (note) 2024-07-31 16:44:06 +02:00
jsconfig all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
kinds all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
page Fix it so publishDate rolls up to section, taxonomy, or term pages 2024-07-01 21:48:12 +02:00
postpub Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
resource Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
resource_factories identity: Use xxHash in hashstructure (note) 2024-07-31 16:44:06 +02:00
resource_transformers identity: Use xxHash in hashstructure (note) 2024-07-31 16:44:06 +02:00
testdata Switch EXIF library 2024-07-20 15:56:10 +02:00
docs.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
errorResource.go Add Luminance to Color 2024-04-16 10:02:46 +02:00
image.go Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
image_cache.go Fix multihost processed image not copied to non-default content languages 2024-02-27 10:43:23 +01:00
image_extended_test.go Switch EXIF library 2024-07-20 15:56:10 +02:00
image_test.go Switch EXIF library 2024-07-20 15:56:10 +02:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
resource_cache.go Add a HTTP cache for remote resources. 2024-06-04 16:07:39 +02:00
resource_metadata.go Create pages from _content.gotmpl 2024-05-14 13:12:08 +02:00
resource_spec.go Switch EXIF library 2024-07-20 15:56:10 +02:00
resource_spec_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
resource_test.go resources: Add BenchmarkHashImage 2024-07-31 16:44:06 +02:00
resources_integration_test.go identity: Use xxHash in hashstructure (note) 2024-07-31 16:44:06 +02:00
testhelpers_test.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
transform.go Add css.TailwindCSS 2024-06-25 15:48:02 +02:00
transform_integration_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
transform_test.go all: Fix typos and some URLs 2024-02-18 12:16:30 +01:00