1. 31 Dec, 2013 3 commits
  2. 30 Dec, 2013 6 commits
  3. 29 Dec, 2013 5 commits
  4. 28 Dec, 2013 3 commits
  5. 27 Dec, 2013 6 commits
  6. 26 Dec, 2013 5 commits
  7. 24 Dec, 2013 2 commits
  8. 23 Dec, 2013 1 commit
  9. 22 Dec, 2013 2 commits
  10. 21 Dec, 2013 4 commits
  11. 20 Dec, 2013 3 commits
    • Jakub Ryszard Czarnowicz's avatar
      net/http: empty contenty-type treated as application/octet-stream · 57e27a87
      Jakub Ryszard Czarnowicz authored
      RFC 2616, section 7.2.1 - empty type SHOULD be treated as
      application/octet-stream.
      Fixes #6616.
      
      R=golang-codereviews, gobot, bradfitz, josharian
      CC=golang-codereviews
      https://golang.org/cl/31810043
      57e27a87
    • Russ Cox's avatar
      cmd/gc: address 1½ liveness bottlenecks · 0e97f418
      Russ Cox authored
      As much as 7x speedup on some programs, cuts all.bash time by 20%.
      
      Change splicebefore function from O(n) to O(1).
      The approach was suggested by Carl during the code's review
      but apparently did not make it into the tree.
      It makes a huge difference on huge programs.
      
      Make twobitwalktype1 slightly faster by using & instead of %.
      Really it needs to be cached; left a note to that effect.
      (Not a complete fix, hence the ½.)
      
      big.go (output of test/chan/select5.go)
       47.53u   0.50s  48.14r before this CL
        7.09u   0.47s   7.59r with splicebefore change (6.7x speedup)
        6.15u   0.42s   6.59r with twobitwalktype1 change (1.15x speedup; total 7.7x)
      
      slow.go (variant of program in go.text, by mpvl)
       77.75u   2.11s  80.03r before this CL
       24.40u   1.97s  26.44r with splicebefore change (3.2x speedup)
       18.12u   2.19s  20.38r with twobitwalktype1 change (1.35x speedup; total 4.3x)
      
      test/run
      150.63u  49.57s  81.08r before this CL
       88.01u  45.60s  46.65r after this CL (1.7x speedup)
      
      all.bash
      369.70u 115.64s 256.21r before this CL
      298.52u 110.35s 214.67r after this CL (1.24x speedup)
      
      The test programs are at
      https://rsc.googlecode.com/hg/testdata/big.go (36k lines, 276kB)
      https://rsc.googlecode.com/hg/testdata/slow.go (7k lines, 352kB)
      
      R=golang-codereviews, gobot, r
      CC=cshapiro, golang-codereviews
      https://golang.org/cl/43210045
      0e97f418
    • Russ Cox's avatar
      cmd/gc: bypass DATA instruction for data initialized to integer constant · 4acb70d3
      Russ Cox authored
      Eventually we will want to bypass DATA for everything,
      but the relocations are not standardized well enough across
      architectures to make that possible.
      
      This did not help as much as I expected, but it is definitely better.
      It shaves maybe 1-2% off all.bash depending on how much you
      trust the timings of a single run:
      
      Before: 241.139r 362.702u 112.967s
      After:  234.339r 359.623u 111.045s
      
      R=golang-codereviews, gobot, r, iant
      CC=golang-codereviews
      https://golang.org/cl/44650043
      4acb70d3