diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-12-27 19:31:42 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-12-28 17:41:51 +0100 |
commit | e50a8c7a142487d88fe0780c24873c1b95a2283c (patch) | |
tree | 29b1c4ad4e1dd9af49f45fb7b329d2909c511155 /Gopkg.lock | |
parent | 7e76a6fd3bc78363ed31d712c63e6b17734797d7 (diff) | |
download | hugo-e50a8c7a142487d88fe0780c24873c1b95a2283c.tar.gz hugo-e50a8c7a142487d88fe0780c24873c1b95a2283c.zip |
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
Diffstat (limited to 'Gopkg.lock')
-rw-r--r-- | Gopkg.lock | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Gopkg.lock b/Gopkg.lock index 44f957d18..4e79fd569 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -240,8 +240,8 @@ ".", "mem" ] - revision = "8d919cbe7e2627e417f3e45c3c0e489a5b7e2536" - version = "v1.0.0" + revision = "ec3a3111d1e1bdff38a61e09d5a5f5e974905611" + version = "v1.0.1" [[projects]] name = "github.com/spf13/cast" @@ -369,6 +369,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "2d9c34c260bc26814a0635c93009daeb9d8ffa56c29c0cff6827ae2d3e9ef96d" + inputs-digest = "7259b4caf8e75db0b809f06d4897dc870261252e3aecd68ea1348c87a5da9d50" solver-name = "gps-cdcl" solver-version = 1 |