Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, do not return an error when input format isn't supported. Just return `nil` exif. Using the stream API makes it a little faster: ``` name old time/op new time/op delta DecodeExif-16 1.94ms ± 1% 1.81ms ± 1% -6.74% (p=0.029 n=4+4) name old alloc/op new alloc/op delta DecodeExif-16 1.51MB ± 0% 1.13MB ± 0% -25.32% (p=0.029 n=4+4) name old allocs/op new allocs/op delta DecodeExif-16 12.9k ± 0% 12.9k ± 0% -0.15% (p=0.029 n=4+4) ``` It's still much slower than what we had: ``` name old time/op new time/op delta DecodeExif-16 108µs ± 1% 1857µs ± 2% +1624.52% (p=0.029 n=4+4) name old alloc/op new alloc/op delta DecodeExif-16 184kB ± 0% 1130kB ± 0% +513.72% (p=0.029 n=4+4) name old allocs/op new allocs/op delta DecodeExif-16 1.20k ± 0% 12.91k ± 0% +972.82% (p=0.029 n=4+4) ``` See #8586
- Loading branch information