1. 04 Apr, 2013 8 commits
  2. 03 Apr, 2013 27 commits
  3. 02 Apr, 2013 5 commits
    • Rob Pike's avatar
      lib/time: update time zone to IANA version 2013b · 26e0ddcf
      Rob Pike authored
      Update #4553.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/8293043
      26e0ddcf
    • Brad Fitzpatrick's avatar
      net/http: fewer allocations in chunkWriter.WriteHeader · babbd55e
      Brad Fitzpatrick authored
      It was unnecessarily cloning and then mutating a map that had
      a very short lifetime (just that function).
      
      No new tests, because they were added in revision 833bf2ef1527
      (TestHeaderToWire). The benchmarks below are from the earlier
      commit, revision 52e3407d.
      
      I noticed this inefficiency when reviewing a change Peter Buhr
      is looking into, which will also use these benchmarks.
      
      benchmark                         old ns/op    new ns/op    delta
      BenchmarkServerHandlerTypeLen         12547        12325   -1.77%
      BenchmarkServerHandlerNoLen           12466        11167  -10.42%
      BenchmarkServerHandlerNoType          12699        11800   -7.08%
      BenchmarkServerHandlerNoHeader        11901         9210  -22.61%
      
      benchmark                        old allocs   new allocs    delta
      BenchmarkServerHandlerTypeLen            21           20   -4.76%
      BenchmarkServerHandlerNoLen              20           18  -10.00%
      BenchmarkServerHandlerNoType             20           18  -10.00%
      BenchmarkServerHandlerNoHeader           17           13  -23.53%
      
      benchmark                         old bytes    new bytes    delta
      BenchmarkServerHandlerTypeLen          1930         1913   -0.88%
      BenchmarkServerHandlerNoLen            1912         1879   -1.73%
      BenchmarkServerHandlerNoType           1912         1878   -1.78%
      BenchmarkServerHandlerNoHeader         1491         1086  -27.16%
      
      R=golang-dev, adg
      CC=golang-dev
      https://golang.org/cl/8268046
      babbd55e
    • Keith Randall's avatar
      runtime: Implement faster equals for strings and bytes. · 3d5daa23
      Keith Randall authored
      (amd64)
      benchmark           old ns/op    new ns/op    delta
      BenchmarkEqual0            16            6  -63.15%
      BenchmarkEqual9            22            7  -65.37%
      BenchmarkEqual32           36            9  -74.91%
      BenchmarkEqual4K         2187          120  -94.51%
      
      benchmark            old MB/s     new MB/s  speedup
      BenchmarkEqual9        392.22      1134.38    2.89x
      BenchmarkEqual32       866.72      3457.39    3.99x
      BenchmarkEqual4K      1872.73     33998.87   18.15x
      
      (386)
      benchmark           old ns/op    new ns/op    delta
      BenchmarkEqual0            16            5  -63.85%
      BenchmarkEqual9            22            7  -67.84%
      BenchmarkEqual32           34           12  -64.94%
      BenchmarkEqual4K         2196          113  -94.85%
      
      benchmark            old MB/s     new MB/s  speedup
      BenchmarkEqual9        405.81      1260.18    3.11x
      BenchmarkEqual32       919.55      2631.21    2.86x
      BenchmarkEqual4K      1864.85     36072.54   19.34x
      
      Update #3751
      
      R=bradfitz, r, khr, dave, remyoudompheng, fullung, minux.ma, ality
      CC=golang-dev
      https://golang.org/cl/8056043
      3d5daa23
    • Brad Fitzpatrick's avatar
      net/http: new server Handler benchmarks · 6ca1fa62
      Brad Fitzpatrick authored
      For all the Content-Type & Content-Length cases.
      
      R=golang-dev, pabuhr
      CC=golang-dev
      https://golang.org/cl/8280046
      6ca1fa62
    • David Symonds's avatar
      cmd/gc: preserve safe annotation of package def. · 389093fe
      David Symonds authored
      A package file may begin as either "package foo" or
      "package foo safe". The latter is relevant when using -u.
      https://golang.org/cl/6903059 resulted in the distinction
      being dropped when a package was read for the second or later time.
      This CL records whether that "safe" tag was present,
      and includes it in the dummy statement generated for the lexer.
      
      R=golang-dev, r, minux.ma, daniel.morsing, iant
      CC=golang-dev
      https://golang.org/cl/8255044
      389093fe