1. 28 Oct, 2014 2 commits
  2. 27 Oct, 2014 9 commits
  3. 26 Oct, 2014 1 commit
  4. 25 Oct, 2014 1 commit
  5. 24 Oct, 2014 8 commits
    • Gustavo Niemeyer's avatar
      cmd/go: add bzr support for vcs root checking · fdf45843
      Gustavo Niemeyer authored
      Complements the logic introduced in CL 147170043.
      
      LGTM=rsc
      R=rsc, gustavo
      CC=golang-codereviews
      https://golang.org/cl/147240043
      fdf45843
    • Rob Pike's avatar
      c2b7b6d5
    • Rob Pike's avatar
      unsafe: document that unsafe programs are not protected · 1415a53b
      Rob Pike authored
      The compatibility guideline needs to be clear about this even
      though it means adding a clause that was not there from the
      beginning. It has always been understood, so this isn't really
      a change in policy, just in its expression.
      
      LGTM=bradfitz, gri, rsc
      R=golang-codereviews, bradfitz, gri, rsc
      CC=golang-codereviews
      https://golang.org/cl/162060043
      1415a53b
    • Austin Clements's avatar
      [dev.power64] liblink: print line numbers in disassembly on power64 · 11ec8ab5
      Austin Clements authored
      Matching other platforms.
      
      LGTM=rsc
      R=rsc
      CC=golang-codereviews
      https://golang.org/cl/161320043
      11ec8ab5
    • Russ Cox's avatar
      net/http/pprof: run GC for /debug/pprof/heap?gc=1 · c5943c66
      Russ Cox authored
      We force runtime.GC before WriteHeapProfile with -test.heapprofile.
      Make it possible to do the same with the HTTP interface.
      
      Some servers only run a GC every few minutes.
      On such servers, the heap profile will be a few minutes stale,
      which may be too old to be useful.
      
      Requested by private mail.
      
      LGTM=dvyukov
      R=dvyukov
      CC=golang-codereviews
      https://golang.org/cl/161990043
      c5943c66
    • Russ Cox's avatar
      cmd/gc: synthesize zeroed value for non-assignment context · 5225854b
      Russ Cox authored
      CL 157910047 introduced code to turn a node representing
      a zeroed composite literal into N, the nil Node* pointer
      (which represents any zero, not the Go literal nil).
      
      That's great for assignments like x = T{}, but it doesn't work
      when T{} is used in a value context like T{}.v or x == T{}.
      Fix those.
      
      Should have no effect on performance; confirmed.
      The deltas below are noise (compare ns/op):
      
      benchmark                          old ns/op      new ns/op      delta
      BenchmarkBinaryTree17              2902919192     2915228424     +0.42%
      BenchmarkFannkuch11                2597417605     2630363685     +1.27%
      BenchmarkFmtFprintfEmpty           73.7           74.8           +1.49%
      BenchmarkFmtFprintfString          196            199            +1.53%
      BenchmarkFmtFprintfInt             213            217            +1.88%
      BenchmarkFmtFprintfIntInt          336            356            +5.95%
      BenchmarkFmtFprintfPrefixedInt     289            294            +1.73%
      BenchmarkFmtFprintfFloat           415            416            +0.24%
      BenchmarkFmtManyArgs               1281           1271           -0.78%
      BenchmarkGobDecode                 10271734       10307978       +0.35%
      BenchmarkGobEncode                 8985021        9079442        +1.05%
      BenchmarkGzip                      410233227      412266944      +0.50%
      BenchmarkGunzip                    102114554      103272443      +1.13%
      BenchmarkHTTPClientServer          45297          44993          -0.67%
      BenchmarkJSONEncode                19499741       19498489       -0.01%
      BenchmarkJSONDecode                76436733       74247497       -2.86%
      BenchmarkMandelbrot200             4273814        4307292        +0.78%
      BenchmarkGoParse                   4024594        4028937        +0.11%
      BenchmarkRegexpMatchEasy0_32       131            135            +3.05%
      BenchmarkRegexpMatchEasy0_1K       328            333            +1.52%
      BenchmarkRegexpMatchEasy1_32       115            117            +1.74%
      BenchmarkRegexpMatchEasy1_1K       931            948            +1.83%
      BenchmarkRegexpMatchMedium_32      216            217            +0.46%
      BenchmarkRegexpMatchMedium_1K      72669          72857          +0.26%
      BenchmarkRegexpMatchHard_32        3818           3809           -0.24%
      BenchmarkRegexpMatchHard_1K        121398         121945         +0.45%
      BenchmarkRevcomp                   613996550      615145436      +0.19%
      BenchmarkTemplate                  93678525       93267391       -0.44%
      BenchmarkTimeParse                 414            411            -0.72%
      BenchmarkTimeFormat                396            399            +0.76%
      
      Fixes #8947.
      
      LGTM=r
      R=r, dave
      CC=golang-codereviews
      https://golang.org/cl/162130043
      5225854b
    • Russ Cox's avatar
      doc/go1.4: encoding/csv · 737a9e0d
      Russ Cox authored
      CC=golang-codereviews
      https://golang.org/cl/162140043
      737a9e0d
    • Russ Cox's avatar
      encoding/csv: for Postgres, unquote empty strings, quote \. · 6ad2749d
      Russ Cox authored
      In theory both of these lines encode the same three fields:
      
              a,,c
              a,"",c
      
      However, Postgres defines that when importing CSV, the unquoted
      version is treated as NULL (missing), while the quoted version is
      treated as a string value (empty string). If the middle field is supposed to
      be an integer value, the first line can be imported (NULL is okay), but
      the second line cannot (empty string is not).
      
      Postgres's import command (COPY FROM) has an option to force
      the unquoted empty to be interpreted as a string but it does not
      have an option to force the quoted empty to be interpreted as a NULL.
      
      From http://www.postgresql.org/docs/9.0/static/sql-copy.html:
      
              The CSV format has no standard way to distinguish a NULL
              value from an empty string. PostgreSQL's COPY handles this
              by quoting. A NULL is output as the NULL parameter string
              and is not quoted, while a non-NULL value matching the NULL
              parameter string is quoted. For example, with the default
              settings, a NULL is written as an unquoted empty string,
              while an empty string data value is written with double
              quotes (""). Reading values follows similar rules. You can
              use FORCE_NOT_NULL to prevent NULL input comparisons for
              specific columns.
      
      Therefore printing the unquoted empty is more flexible for
      imports into Postgres than printing the quoted empty.
      
      In addition to making the output more useful with Postgres, not
      quoting empty strings makes the output smaller and easier to read.
      It also matches the behavior of Microsoft Excel and Google Drive.
      
      Since we are here and making concessions for Postgres, handle this
      case too (again quoting the Postgres docs):
      
              Because backslash is not a special character in the CSV
              format, \., the end-of-data marker, could also appear as a
              data value. To avoid any misinterpretation, a \. data value
              appearing as a lone entry on a line is automatically quoted
              on output, and on input, if quoted, is not interpreted as
              the end-of-data marker. If you are loading a file created by
              another application that has a single unquoted column and
              might have a value of \., you might need to quote that value
              in the input file.
      
      Fixes #7586.
      
      LGTM=bradfitz
      R=bradfitz
      CC=golang-codereviews
      https://golang.org/cl/164760043
      6ad2749d
  6. 23 Oct, 2014 2 commits
  7. 22 Oct, 2014 10 commits
  8. 21 Oct, 2014 7 commits