hugo/resource
Bjørn Erik Pedersen e50a8c7a14 resource: Use MD5 to identify image files
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
2017-12-28 17:41:51 +01:00
..
testdata Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
image.go resource: Use MD5 to identify image files 2017-12-28 17:41:51 +01:00
image_cache.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
image_test.go resource: Use MD5 to identify image files 2017-12-28 17:41:51 +01:00
resource.go resource: Use MD5 to identify image files 2017-12-28 17:41:51 +01:00
resource_test.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
testhelpers_test.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00