• Benny Siegert's avatar
    image/tiff: decoder optimization. · 64c9c7f5
    Benny Siegert authored
    Write to image.*.Pix directly in the case of RGB, RGBA and NRGBA
    images. For the latter two, the file format matches the memory layout
    so a simple copy can be used.
    
    RGB image before/after:
    tiff.BenchmarkDecoder	748137 ns/op (62.39 MB/s)	251256 ns/op (185.76 MB/s)	x3.0
    
    NRGBA image before/after:
    tiff.BenchmarkDecoder	775540 ns/op (80.12 MB/s)	116721 ns/op (532.34 MB/s)	x6.6
    
    R=nigeltao
    CC=golang-dev
    https://golang.org/cl/4929046
    64c9c7f5
Name
Last commit
Last update
..
bmp Loading commit data...
draw Loading commit data...
gif Loading commit data...
jpeg Loading commit data...
png Loading commit data...
testdata Loading commit data...
tiff Loading commit data...
ycbcr Loading commit data...
Makefile Loading commit data...
color.go Loading commit data...
decode_test.go Loading commit data...
format.go Loading commit data...
geom.go Loading commit data...
image.go Loading commit data...
image_test.go Loading commit data...
names.go Loading commit data...