1. 21 Aug, 2014 10 commits
  2. 20 Aug, 2014 5 commits
  3. 19 Aug, 2014 22 commits
  4. 18 Aug, 2014 3 commits
    • Andrew Gerrand's avatar
      fmt: print byte stringers correctly · 326f48eb
      Andrew Gerrand authored
      type T byte
      func (T) String() string { return "X" }
      
      fmt.Sprintf("%s", []T{97, 98, 99, 100}) == "abcd"
      fmt.Sprintf("%x", []T{97, 98, 99, 100}) == "61626364"
      fmt.Sprintf("%v", []T{97, 98, 99, 100}) == "[X X X X]"
      
      This change makes the last case print correctly.
      Before, it would have been "[97 98 99 100]".
      
      Fixes #8360.
      
      LGTM=r
      R=r, dan.kortschak
      CC=golang-codereviews
      https://golang.org/cl/129330043
      326f48eb
    • Jeff R. Allen's avatar
      bzip2: improve performance · 6d248cec
      Jeff R. Allen authored
      Improve performance of move-to-front by using cache-friendly
      copies instead of doubly-linked list. Simplify so that the
      underlying slice is the object. Remove the n=0 special case,
            which was actually slower with the copy approach.
      
      benchmark                 old ns/op     new ns/op     delta
      BenchmarkDecodeDigits     26429714      23859699      -9.72%
      BenchmarkDecodeTwain      76684510      67591946      -11.86%
      
      benchmark                 old MB/s     new MB/s     speedup
      BenchmarkDecodeDigits     1.63         1.81         1.11x
      BenchmarkDecodeTwain      1.63         1.85         1.13x
      
      Updates #6754.
      
      LGTM=adg, agl, josharian
      R=adg, agl, josharian
      CC=golang-codereviews
      https://golang.org/cl/131840043
      6d248cec
    • Keith Randall's avatar
      runtime: move panicindex/panicslice to Go. · 523aa932
      Keith Randall authored
      LGTM=bradfitz
      R=golang-codereviews, bradfitz
      CC=golang-codereviews
      https://golang.org/cl/130210043
      523aa932