1. 13 Sep, 2013 10 commits
  2. 12 Sep, 2013 19 commits
  3. 11 Sep, 2013 11 commits
    • Rob Pike's avatar
      doc/go1.2.html: some library changes (fmt, template) · a97a7c5e
      Rob Pike authored
      Also link it to the landing page for docs.
      
      R=golang-dev, adg
      CC=golang-dev
      https://golang.org/cl/13652045
      a97a7c5e
    • Rémy Oudompheng's avatar
      cmd/gc: inline copy in frontend to call memmove directly. · ff416a3f
      Rémy Oudompheng authored
      A new node type OSPTR is added to refer to the data pointer of
      strings and slices in a simple way during walk(). It will be
      useful for future work on simplification of slice arithmetic.
      
      benchmark                  old ns/op    new ns/op    delta
      BenchmarkCopy1Byte                 9            8  -13.98%
      BenchmarkCopy2Byte                14            8  -40.49%
      BenchmarkCopy4Byte                13            8  -35.04%
      BenchmarkCopy8Byte                13            8  -37.10%
      BenchmarkCopy12Byte               14           12  -15.38%
      BenchmarkCopy16Byte               14           12  -17.24%
      BenchmarkCopy32Byte               19           14  -27.32%
      BenchmarkCopy128Byte              31           26  -15.29%
      BenchmarkCopy1024Byte            100           92   -7.50%
      BenchmarkCopy1String              10            7  -28.99%
      BenchmarkCopy2String              10            7  -28.06%
      BenchmarkCopy4String              10            8  -22.69%
      BenchmarkCopy8String              10            8  -23.30%
      BenchmarkCopy12String             11           11   -5.88%
      BenchmarkCopy16String             11           11   -5.08%
      BenchmarkCopy32String             15           14   -6.58%
      BenchmarkCopy128String            28           25  -10.60%
      BenchmarkCopy1024String           95           95   +0.53%
      
      R=golang-dev, bradfitz, cshapiro, dave, daniel.morsing, rsc, khr, khr
      CC=golang-dev
      https://golang.org/cl/9101048
      ff416a3f
    • Russ Cox's avatar
      cmd/5g, cmd/6g, cmd/8g: remove O(n) reset loop in copyprop · 6d47de2f
      Russ Cox authored
      Simpler version of CL 13084043.
      
      R=ken2
      CC=golang-dev
      https://golang.org/cl/13602045
      6d47de2f
    • Russ Cox's avatar
      undo CL 13084043 / ef4ee02a5853 · a0bc379d
      Russ Cox authored
      There is a cleaner, simpler way.
      
      ««« original CL description
      cmd/5g, cmd/6g, cmd/8g: faster compilation
      Replace linked list walk with memset.
      This reduces CPU time taken by 'go install -a std' by ~10%.
      Before:
      real		user		sys
      0m23.561s	0m16.625s	0m5.848s
      0m23.766s	0m16.624s	0m5.846s
      0m23.742s	0m16.621s	0m5.868s
      after:
      0m22.714s	0m14.858s	0m6.138s
      0m22.644s	0m14.875s	0m6.120s
      0m22.604s	0m14.854s	0m6.081s
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/13084043
      »»»
      
      TBR=dvyukov
      CC=golang-dev
      https://golang.org/cl/13352049
      a0bc379d
    • Russ Cox's avatar
      8cd6341c
    • Russ Cox's avatar
      cmd/api: fix tool for recent go/build change · cdc5356c
      Russ Cox authored
      Asking about runtime/cgo when CgoEnabled=false now correctly
      returns an error from build.Import (specifically, NoGoError), because
      there are no buildable Go files in that directory.
      
      The API tool was depending on it returning a package with no Go
      files instead. Correct that assumption.
      
      Fixes all.bash on local machines.
      (Dashboard appears not to be running the api tool at all.)
      
      Update #6124
      
      TBR=golang-dev
      CC=golang-dev
      https://golang.org/cl/13385046
      cdc5356c
    • Russ Cox's avatar
      undo CL 13632053 / dc7bfe0f022d · 6624b708
      Russ Cox authored
      It was never going to last.
      
      ««« original CL description
      cmd/api: break the builds
      
      There is some question about whether the api tool is
      running on Windows (see issue 6124), and now I'm
      starting to question whether it runs on any of the builders,
      since both darwin/amd64 and linux/amd64 are crashing for me
      in the api tool due to a recent cgo-related change, and yet
      the dashboard is happy.
      
      If the dashboard is still happy after this CL, we have a problem.
      
      Update #6124
      
      TBR=golang-dev
      CC=golang-dev
      https://golang.org/cl/13632053
      »»»
      
      TBR=golang-dev
      CC=golang-dev
      https://golang.org/cl/13474045
      6624b708
    • Russ Cox's avatar
      cmd/api: break the builds · 89a6a8fd
      Russ Cox authored
      There is some question about whether the api tool is
      running on Windows (see issue 6124), and now I'm
      starting to question whether it runs on any of the builders,
      since both darwin/amd64 and linux/amd64 are crashing for me
      in the api tool due to a recent cgo-related change, and yet
      the dashboard is happy.
      
      If the dashboard is still happy after this CL, we have a problem.
      
      Update #6124
      
      TBR=golang-dev
      CC=golang-dev
      https://golang.org/cl/13632053
      89a6a8fd
    • Russ Cox's avatar
      runtime: keep args and frame in struct Func · ce9ddd0e
      Russ Cox authored
      args is useful for printing tracebacks.
      
      frame is not necessary anymore, but we might some day
      get back to functions where the frame size does not vary
      by program counter, and if so we'll need it. Avoid needing
      to introduce a new struct format later by keeping it now.
      
      Fixes #5907.
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/13632051
      ce9ddd0e
    • Russ Cox's avatar
      go/build: reject directory with only cgo files if cgo not in use · 611b1821
      Russ Cox authored
      The old test for "no Go files" was p.Name == "", meaning we never
      saw a Go package statement. That test fails if there are cgo files
      that we parsed (and recorded the package name) but then chose
      not to use (because cgo is not available).
      
      Test the actual file lists instead.
      
      Fixes #6078.
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/13661043
      611b1821
    • Ian Lance Taylor's avatar
      cmd/yacc: replace units example with simpler expr example · fdaf88ea
      Ian Lance Taylor authored
      The units example is nice but is covered by the Lucent
      license, which may be a concern for some people making a
      commercial source code distribution of Go.
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/13283045
      fdaf88ea