go.image/tiff: optimize reading uncompressed files from a tiff.buffer.

In case the image is read via a tiff.buffer, avoid copying the
data strip before decoding it. Remove corresponding TODO.
Speeds up reading uncompressed images (which is the common case)
and uses much less memory.

benchmark                      old ns/op    new ns/op    delta
BenchmarkDecodeCompressed        4619438      4630774   +0.25%
BenchmarkDecodeUncompressed       260809       219875  -15.70%

R=nigeltao
CC=golang-dev
https://golang.org/cl/5683050
2 files changed
tree: 698f172ce16a9161c8e164914fb0b0c383ce3156
  1. bmp/
  2. testdata/
  3. tiff/
  4. .hgignore
  5. AUTHORS
  6. codereview.cfg
  7. CONTRIBUTORS
  8. README