1. 09 Nov, 2010 3 commits
    • Roger Peppe's avatar
      container/list: make Remove return Value of removed element. · e9afb9d3
      Roger Peppe authored
      When it is known that there is already at least one element in the
      list, it is awkwardly verbose to use three lines and an extra
      variable declaration to remove the first or last item (a common
      case), rather than use a simple expression.
      
      a stack:
      	stk.PushFront(x)
      	x = stk.Front().Remove().(T)
      
      vs.
      	stk.PushFront(x)
      	e := stk.Front()
      	e.Remove()
      	x = e.Value.(T)
      [An alternative CL might be to add PopFront and PopBack methods].
      
      R=gri
      CC=golang-dev
      https://golang.org/cl/3000041
      e9afb9d3
    • Peter Mundy's avatar
      doc: fix go_spec spelling error · 96261809
      Peter Mundy authored
      R=rsc, gri
      CC=golang-dev
      https://golang.org/cl/2985041
      96261809
    • Evan Shaw's avatar
      bytes: SSE for bytes.IndexByte on amd64 · 49fdfe21
      Evan Shaw authored
      Performance on 2.8 GHz Intel Core i7:
      
      Before:
      BenchmarkIndexByte4K  1000000              2997 ns/op        1366.70 MB/s
      BenchmarkIndexByte4M      500           3049772 ns/op        1375.28 MB/s
      BenchmarkIndexByte64M      50          49582280 ns/op        1353.48 MB/s
      
      After:
      BenchmarkIndexByte4K 10000000               298 ns/op       13744.97 MB/s
      BenchmarkIndexByte4M    10000            285993 ns/op       14665.76 MB/s
      BenchmarkIndexByte64M     500           4618172 ns/op       14531.48 MB/s
      
      R=rsc, PeterGo, r2, r
      CC=golang-dev
      https://golang.org/cl/2888041
      49fdfe21
  2. 08 Nov, 2010 6 commits
  3. 06 Nov, 2010 4 commits
  4. 05 Nov, 2010 14 commits
  5. 04 Nov, 2010 10 commits
  6. 03 Nov, 2010 3 commits