1. 19 Jan, 2012 5 commits
    • Nigel Tao's avatar
      image: add PixOffset methods; use them in image/draw and image/tiff. · af08cfa4
      Nigel Tao authored
      image/draw benchmarks show <1% change for the fast paths.
      The slow paths got worse by 1-4%, but they're the slow paths.
      I don't care so much about them, and presumably compiler improvements
      could claw it back.
      
      IIUC 6g's inlining is enabled by default now.
      
      benchmark                        old ns/op    new ns/op    delta
      draw.BenchmarkFillOver             2988384      2999624   +0.38%
      draw.BenchmarkFillSrc               153141       153262   +0.08%
      draw.BenchmarkCopyOver             2155756      2170831   +0.70%
      draw.BenchmarkCopySrc                72591        72646   +0.08%
      draw.BenchmarkNRGBAOver            2487372      2491576   +0.17%
      draw.BenchmarkNRGBASrc             1361306      1409180   +3.52%
      draw.BenchmarkYCbCr                2540712      2562359   +0.85%
      draw.BenchmarkGlyphOver            1004879      1023308   +1.83%
      draw.BenchmarkRGBA                 8746670      8844455   +1.12%
      draw.BenchmarkGenericOver         31860960     32512960   +2.05%
      draw.BenchmarkGenericMaskOver     16369060     16435720   +0.41%
      draw.BenchmarkGenericSrc          13128540     13127810   -0.01%
      draw.BenchmarkGenericMaskSrc      30059300     28883210   -3.91%
      
      R=r, gri
      CC=golang-dev, rsc
      https://golang.org/cl/5536059
      af08cfa4
    • Brad Fitzpatrick's avatar
      net: use NewTimer, not NewTicker, in fd_windows.go · 98af3880
      Brad Fitzpatrick authored
      It works with NewTicker too, but is potentially a bit less efficient,
      and reads wrong.
      
      This is what happens when you TBR Windows changes, I guess.
      
      R=golang-dev, gri, iant
      CC=golang-dev
      https://golang.org/cl/5536060
      98af3880
    • Andrew Gerrand's avatar
      godoc: specify HTML page metadata with a JSON blob · 7cb21a79
      Andrew Gerrand authored
      This allows HTML pages to specify arbitrary data in a header:
      
      <!--{
              "Title": "The page title",
              ...
      }-->
      
      replacing the old style comments:
      
      <!-- title The page title -->
      
      R=gri, rsc, r, bradfitz, dsymonds
      CC=golang-dev
      https://golang.org/cl/5532093
      7cb21a79
    • Brad Fitzpatrick's avatar
      net: change SetTimeout to SetDeadline · b71883e9
      Brad Fitzpatrick authored
      Previously, a timeout (in int64 nanoseconds) applied to a granularity
      even smaller than one operation:  a 100 byte read with a 1 second timeout
      could take 100 seconds, if the bytes all arrived on the network 1 second
      apart.  This was confusing.
      
      Rather than making the timeout granularity be per-Read/Write,
      this CL makes callers set an absolute deadline (in time.Time)
      after which operations will fail.  This makes it possible to
      set deadlines at higher levels, without knowing exactly how
      many read/write operations will happen in e.g. reading an HTTP
      request.
      
      Fixes #2723
      
      R=r, rsc, dave
      CC=golang-dev
      https://golang.org/cl/5555048
      b71883e9
    • Ian Lance Taylor's avatar
      test: split golden.out into expected output per test · 5e77b009
      Ian Lance Taylor authored
      This will permit gccgo to check test output.
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/5554056
      5e77b009
  2. 18 Jan, 2012 20 commits
  3. 17 Jan, 2012 15 commits