hugo/tpl/tplimpl
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
..
embedded tpl/tplimpl: Resolve render hook destinations with leading ./ 2024-05-21 09:38:25 +02:00
render_hook_integration_test.go tpl/tplimpl: Resolve render hook destinations with leading ./ 2024-05-21 09:38:25 +02:00
shortcodes.go all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
shortcodes_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
template.go Implement defer 2024-06-23 11:25:47 +02:00
template_ast_transformers.go Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
template_ast_transformers_test.go Implement defer 2024-06-23 11:25:47 +02:00
template_errors.go Create default link and image render hooks 2024-01-30 20:12:19 +01:00
template_funcs.go Add hash.XxHash 2024-07-06 14:08:15 +02:00
template_funcs_test.go tpl/math: Add math.Rand template function 2023-12-29 19:37:27 +01:00
template_test.go Fix base template handling with preceding comments 2020-01-30 23:44:42 +01:00
templateFuncster.go
templateProvider.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
tplimpl_integration_test.go tpl/tplimpl: Plainify title and description in twitter_cards.html 2024-05-14 14:45:04 +02:00