- 12 Jul, 2011 13 commits
-
-
Nigel Tao authored
There are no behavioral changes, only some copy-and-pastes. Before, drawFillOver was next to drawCopyOver. After, drawFillOver is next to drawFillSrc, which is more similar to drawFillOver than drawCopyOver is. Similarly, drawCopyOver is now next to drawCopySrc, etc. R=r CC=golang-dev https://golang.org/cl/4695045
-
Nigel Tao authored
Some benchmark numbers below. The image/draw fast-paths show dramatic improvement, the generic slow-paths show a smaller slow-down. BEFORE png.BenchmarkEncodePaletted 200 8203800 ns/op 37.45 MB/s png.BenchmarkEncodeRGBOpaque 100 26940440 ns/op 45.61 MB/s png.BenchmarkEncodeRGBA 20 73821000 ns/op 16.65 MB/s jpeg.BenchmarkEncodeRGBOpaque 50 35598640 ns/op 34.52 MB/s draw.BenchmarkFillOver 500 4024226 ns/op draw.BenchmarkFillSrc 10000 152736 ns/op draw.BenchmarkCopyOver 500 3452824 ns/op draw.BenchmarkCopySrc 50000 73218 ns/op draw.BenchmarkNRGBAOver 500 3941234 ns/op draw.BenchmarkNRGBASrc 1000 2484400 ns/op draw.BenchmarkYCbCr 1000 2609005 ns/op draw.BenchmarkGlyphOver 2000 1169575 ns/op draw.BenchmarkRGBA 200 9031390 ns/op draw.BenchmarkGenericOver 50 34636620 ns/op draw.BenchmarkGenericMaskOver 100 16561150 ns/op draw.BenchmarkGenericSrc 100 13873760 ns/op draw.BenchmarkGenericMaskSrc 100 25198860 ns/op AFTER png.BenchmarkEncodePaletted 200 8206600 ns/op 37.43 MB/s png.BenchmarkEncodeRGBOpaque 100 26129530 ns/op 47.03 MB/s png.BenchmarkEncodeRGBA 20 75776750 ns/op 16.22 MB/s jpeg.BenchmarkEncodeRGBOpaque 50 37192940 ns/op 33.04 MB/s draw.BenchmarkFillOver 500 3008134 ns/op draw.BenchmarkFillSrc 10000 154214 ns/op draw.BenchmarkCopyOver 1000 2169988 ns/op draw.BenchmarkCopySrc 50000 73095 ns/op draw.BenchmarkNRGBAOver 1000 2491079 ns/op draw.BenchmarkNRGBASrc 2000 1361244 ns/op draw.BenchmarkYCbCr 1000 2554269 ns/op draw.BenchmarkGlyphOver 2000 1042225 ns/op draw.BenchmarkRGBA 100 10233340 ns/op draw.BenchmarkGenericOver 50 38421560 ns/op draw.BenchmarkGenericMaskOver 100 17521190 ns/op draw.BenchmarkGenericSrc 100 16351200 ns/op draw.BenchmarkGenericMaskSrc 100 26538190 ns/op R=r CC=golang-dev https://golang.org/cl/4675076
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4695043
-
Russ Cox authored
R=adg, dsymonds CC=golang-dev https://golang.org/cl/4700041
-
Dmitriy Vyukov authored
runtime.goidgen can be quite frequently modified and shares cache line with the following variables, it leads to false sharing. 50c6b0 b nfname 50c6b4 b nfunc 50c6b8 b nfunc$17 50c6bc b nhist$17 50c6c0 B runtime.checking 50c6c4 B runtime.gcwaiting 50c6c8 B runtime.goidgen 50c6cc B runtime.gomaxprocs 50c6d0 B runtime.panicking 50c6d4 B strconv.IntSize 50c6d8 B src/pkg/runtime/_xtest_.ss 50c6e0 B src/pkg/runtime/_xtest_.stop 50c6e8 b addrfree 50c6f0 b addrmem 50c6f8 b argv R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4673054
-
Dmitriy Vyukov authored
Use machine-local random number generator instead of racy global ones. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4674049
-
Dmitriy Vyukov authored
The data race can lead to erroneous output of "[invalid string]" instead of a string. R=golang-dev CC=golang-dev https://golang.org/cl/4678049
-
Alex Brainman authored
R=golang-dev, vcc.163 CC=golang-dev https://golang.org/cl/4670049
-
Brad Fitzpatrick authored
Fixes #2012 R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4662091
-
Rob Pike authored
Without further type informatnion, 1.0 is a float and an integer must fit in an int. R=rsc CC=golang-dev https://golang.org/cl/4696042
-
Alex Brainman authored
R=rsc CC=golang-dev https://golang.org/cl/4697041
-
Andrew Gerrand authored
R=golang-dev, mirtchovski, mikioh.mikioh CC=golang-dev https://golang.org/cl/4686049
-
Yasuhiro Matsumoto authored
makehtml does not work on windows. R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/4675041
-
- 11 Jul, 2011 14 commits
-
-
Andrew Gerrand authored
Breaks Mercurial 1.8.3. ««« original CL description codereview: fix for Mercurial 1.9 Fixes #2038. R=rsc, bobbypowers CC=golang-dev https://golang.org/cl/4675045 »»» R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4685055
-
Andrew Gerrand authored
Fixes #2038. R=rsc, bobbypowers CC=golang-dev https://golang.org/cl/4675045
-
Brad Fitzpatrick authored
This causes the child, if still writing, to get an error or SIGPIPE and most likely exit so our subsequent wait can finish. A more guaranteed fix would be putting a time limit on the child's overall execution, but this fixes the problem I was having. Fixes #2059 R=rsc CC=golang-dev https://golang.org/cl/4675081
-
Brad Fitzpatrick authored
R=dsymonds, rsc CC=golang-dev https://golang.org/cl/4689043
-
Brad Fitzpatrick authored
Wasn't actually eager closing the fds as a result of the copy/paste bug. (GC was doing it instead) R=rsc CC=golang-dev https://golang.org/cl/4671057
-
Evan Martin authored
This is allowed by the JSON spec and is shorter/easier to read. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/4678046
-
Brad Fitzpatrick authored
This is the form as returned by Postgres, as well as JavaScript. I've tried and failed to find authorative docs online about the proper string serialization, if any. R=golang-dev, gri, r, r, rsc CC=golang-dev https://golang.org/cl/4650077
-
Rob Pike authored
Must keep dot and the receiver separate - variables broke that symmetry. Also clean up function invocation and rename "data" to "dot" for clarity. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4678048
-
Alex Brainman authored
Replaces "mkdir -p ..." command, as Windows mkdir command does not support -p flag. Also, is simpler and faster then launching new process. R=golang-dev, mattn.jp, adg, bradfitz, rsc CC=golang-dev https://golang.org/cl/4626087
-
Rob Pike authored
Not strictly necessary (you could achieve the same, clumsily, via with blocks) but great to have: $x.Field, $y.Method. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4678047
-
Rob Pike authored
Also explain that len(v)==0 makes v a 'zero value' in template execution. R=golang-dev, dsymonds, adg, r CC=golang-dev https://golang.org/cl/4691041
-
Rob Pike authored
We can avoid the check against empty constants (''), which UnquoteChar doesn't handle well, by leaving on the trailing quote and seeing that's all we have left at the end. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4657090
-
Rob Pike authored
Easier to implement than to justify leaving them out. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4662089
-
Rob Pike authored
Worth catching at parse time rather than execution. Plus it's really easy. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4641100
-
- 10 Jul, 2011 6 commits
-
-
Rob Pike authored
Mistakenly checked in. Fixes #2058. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4670057
-
Rob Pike authored
- suppress the print that -help is not defined. - return a special error code if -help is set - do not change behavior if an explict "help" flag is defined. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4641099
-
Rob Pike authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4687041
-
Rob Pike authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4675072
-
Nigel Tao authored
of the origin. image/png and image/jpeg benchmarks show no significant changes. The image/draw changes suggest to me that making a gofix for this is not feasible. People are just going to have to make manual fixes. R=r CC=golang-dev https://golang.org/cl/4681044
-
Andrew Gerrand authored
R=bradfitz, dchest, r, rsc CC=golang-dev https://golang.org/cl/4523077
-
- 09 Jul, 2011 7 commits
-
-
Evan Martin authored
R=bradfitz CC=golang-dev https://golang.org/cl/4686044
-
Brad Fitzpatrick authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4657089
-
Andrew Balholm authored
Sample code in triv.go wouldn't compile because it didn't use the new FileSystem interface. This was discussed on golang-nuts on July 7. https://groups.google.com/forum/#!topic/golang-nuts/NMhZk3Ft_Vc R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4684044
-
Rob Pike authored
1) Make the value optional ({{template "foo"}}) 2) Allow the template identifier to be a thing of type *Template. The second makes it easy to drop templates in to a set dynamically during invocation. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4671056
-
Rob Pike authored
R=golang-dev, mikioh.mikioh, dsymonds CC=golang-dev https://golang.org/cl/4675070
-
Mikio Hara authored
R=r, gri, r CC=golang-dev https://golang.org/cl/4662085
-
Rob Pike authored
That should be it, bugs aside. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4671055
-