hugo/tpl
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
..
cast
collections identity: Upgrade to github.com/mitchellh/hashstructure/v2 v2.0.2 2024-07-31 16:44:06 +02:00
compare
crypto Add hash.XxHash 2024-07-06 14:08:15 +02:00
css Add css.TailwindCSS 2024-06-25 15:48:02 +02:00
data
debug tpl/debug: Fix reset of debug timers when running the server 2024-06-24 12:49:35 +02:00
diagrams
encoding
fmt Fix Erroridf/Warnidf mixed case issue 2024-06-22 19:01:56 +02:00
hash Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
hugo
images
inflect
internal Clean up the css related template funcs package structure 2024-06-25 15:48:02 +02:00
js Clean up the css related template funcs package structure 2024-06-25 15:48:02 +02:00
lang errors: Return error from cast.ToStringE() consistently 2024-04-04 11:00:14 +02:00
math math: Add trigonometric functions and some angle helper functions 2024-07-29 11:05:36 +02:00
openapi
os
page
partials
path
reflect
resources Clean up the css related template funcs package structure 2024-06-25 15:48:02 +02:00
safe
site
strings tpl/strings: Improve type checking 2024-04-04 18:34:55 +02:00
templates Throw error if resources.PostProcess is used in a deferred template 2024-07-17 12:47:25 +02:00
time
tplimpl Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
transform Make the cache eviction logic for stale entities more robust 2024-05-04 19:45:43 +02:00
urls all: Fix duplicate words in comments 2024-04-11 09:31:33 +02:00
template.go Implement defer 2024-06-23 11:25:47 +02:00
template_info.go
template_test.go