mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
e50a8c7a14
But only a set of byte chunks spread around in the image file to calculate the fingerprint, which is much faster than reading the whole file: ```bash BenchmarkMD5FromFileFast/full=false-4 300000 4356 ns/op 240 B/op 5 allocs/op BenchmarkMD5FromFileFast/full=true-4 30000 42899 ns/op 32944 B/op 5 allocs/op ``` Fixes #4186 |
||
---|---|---|
.. | ||
testdata | ||
image.go | ||
image_cache.go | ||
image_test.go | ||
resource.go | ||
resource_test.go | ||
testhelpers_test.go |