1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:31:21 -06:00
go/src/pkg
Nigel Tao 13f08cd807 exp/draw: fast paths for drawing a YCbCr or an NRGBA onto an RGBA.
On my laptop, I had an 800x600 jpeg and an 800x600 png (with
transparency). I timed how long it took to draw each image onto an
equivalently sized, zeroed RGBA image.

Previously, the jpeg took 75ms and the png took 70ms, going through
the medium-fast path, i.e. func drawRGBA in draw.go.

After this CL, the jpeg took 14ms, and the png took 21ms with the
Over operator and 12ms with the Src operator.

It's only a rough estimate basd on one image file, but it should
give an idea of the order of magnitude of improvement.

R=rsc, r
CC=adg, golang-dev
https://golang.org/cl/4468044
2011-05-04 10:17:53 -07:00
..
archive tar: use ioutil.Discard 2011-04-27 15:57:22 -07:00
asn1 fix tree for reflect rename 2011-04-25 13:39:36 -04:00
big src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
bufio src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
bytes src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
cmath src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
compress png: speed up opaque RGBA encoding 2011-05-02 07:25:53 -07:00
container container/heap: fix circular dependency in test 2011-04-22 16:29:05 -04:00
crypto crypto/x509: memorize chain building. 2011-04-26 10:26:22 -04:00
debug cgo: handle versioned ELF symbols 2011-04-27 23:21:03 -04:00
ebnf src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
encoding fix tree for reflect rename 2011-04-25 13:39:36 -04:00
exec syscall: correct Windows CreateProcess input parameters 2011-04-21 10:36:27 +10:00
exp exp/draw: fast paths for drawing a YCbCr or an NRGBA onto an RGBA. 2011-05-04 10:17:53 -07:00
expvar src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
flag src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
fmt fix tree for reflect rename 2011-04-25 13:39:36 -04:00
go go/printer: make tests follow syntactic restrictions 2011-05-02 10:05:43 -07:00
gob fix tree for reflect rename 2011-04-25 13:39:36 -04:00
hash adler32: speed up ~40% by avoiding bounds checks 2011-04-27 21:36:11 -07:00
html ioutil: add Discard, update tree. 2011-04-27 15:47:04 -07:00
http http: fix FormFile nil pointer dereference on missing multipart form 2011-05-03 20:45:10 -07:00
image image: fix build 2011-05-02 15:42:46 -07:00
index/suffixarray src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
io ioutil: add Discard, update tree. 2011-04-27 15:47:04 -07:00
json fix tree for reflect rename 2011-04-25 13:39:36 -04:00
log src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
math src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
mime multipart: add FileName accessor on Part 2011-05-02 08:14:31 -07:00
net net: disable dnsmsg_test on windows 2011-05-04 13:08:36 +10:00
netchan fix tree for reflect rename 2011-04-25 13:39:36 -04:00
os os: remove race paranoia from Environ(); it's guarded now 2011-05-02 23:08:27 -04:00
patch gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
path src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
rand delete float, complex - code changes 2011-01-19 23:09:00 -05:00
reflect reflect: allow unexported key in Value.MapIndex 2011-05-03 10:38:37 -04:00
regexp regexp: add support for matching text read from things that implement 2011-02-03 13:58:40 -08:00
rpc rpc: run benchmarks over HTTP as well as direct network connections. 2011-04-26 16:16:51 -07:00
runtime runtime: maybe fix Windows build broken by cgo setenv CL 2011-05-02 13:35:28 -07:00
scanner src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
smtp update tree for package net changes 2011-03-28 23:28:53 -04:00
sort src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
strconv src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
strings src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
sync runtime, sync/atomic: fix arm cas 2011-05-02 10:49:19 -04:00
syscall syscall: add Windows file mapping functions and constants 2011-05-02 09:35:55 +10:00
syslog syslog: fix skipping of net tests 2011-04-28 14:16:41 -03:00
tabwriter src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
template fix tree for reflect rename 2011-04-25 13:39:36 -04:00
testing fix tree for reflect rename 2011-04-25 13:39:36 -04:00
time time: Support Irix 6 location for zoneinfo files. 2011-04-25 12:37:00 -07:00
try fix tree for reflect rename 2011-04-25 13:39:36 -04:00
unicode src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
unsafe src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
utf8 src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
utf16 gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
websocket websocket: include *http.Request in websocket.Conn 2011-04-26 10:47:49 +10:00
xml xml: fix reflect error 2011-04-28 15:43:42 -04:00
deps.bash build: add another --no-print-directory 2010-12-16 10:46:25 +11:00
Makefile http/spdy: new package 2011-04-28 13:11:37 -07:00