1. 06 Dec, 2011 7 commits
    • Robert Griesemer's avatar
      strconv: 34% to 63% faster conversions · e0c006a9
      Robert Griesemer authored
      (Note that the Int and Uint benchmarks use different test sets
      and thus cannot be compared against each other. Int and Uint
      conversions are approximately the same speed).
      
      Before (best of 3 runs):
      strconv_test.BenchmarkFormatInt    100000    15636 ns/op
      strconv_test.BenchmarkAppendInt    100000    18930 ns/op
      strconv_test.BenchmarkFormatUint   500000     4392 ns/op
      strconv_test.BenchmarkAppendUint   500000     5152 ns/op
      
      After (best of 3 runs):
      
      strconv_test.BenchmarkFormatInt    200000    10070 ns/op (-36%)
      strconv_test.BenchmarkAppendInt    200000     7097 ns/op (-63%)
      strconv_test.BenchmarkFormatUint  1000000     2893 ns/op (-34%)
      strconv_test.BenchmarkAppendUint   500000     2462 ns/op (-52%)
      
      R=r, rsc, r
      CC=golang-dev
      https://golang.org/cl/5449093
      e0c006a9
    • Russ Cox's avatar
      gc: disallow map/func equality via interface comparison · 46deaa29
      Russ Cox authored
      Missed when I removed direct map/func equality.
      
      R=ken2
      CC=golang-dev
      https://golang.org/cl/5452052
      46deaa29
    • Russ Cox's avatar
      image: avoid func comparison during ColorModel comparison · e4e4cdb3
      Russ Cox authored
      When I disallowed map + func comparisons, I only did it
      in the static case and missed the comparisons via == on
      interface values.  Fixing that turned these up.
      
      R=nigeltao, r
      CC=golang-dev
      https://golang.org/cl/5440103
      e4e4cdb3
    • Dave Cheney's avatar
      exp/ssh: simplify client channel open logic · bbbd41f4
      Dave Cheney authored
      This is part one of a small set of CL's that aim to resolve
      the outstanding TODOs relating to channel close and blocking
      behavior.
      
      Firstly, the hairy handling of assigning the peersId is now
      done in one place. The cost of this change is the slightly
      paradoxical construction of the partially created clientChan.
      
      Secondly, by creating clientChan.stdin/out/err when the channel
      is opened, the creation of consumers like tcpchan and Session
      is simplified; they just have to wire themselves up to the
      relevant readers/writers.
      
      R=agl, gustav.paul, rsc
      CC=golang-dev
      https://golang.org/cl/5448073
      bbbd41f4
    • Rob Pike's avatar
      various: we don't cast, we convert · 0a5508c6
      Rob Pike authored
      R=golang-dev, dsymonds
      CC=golang-dev
      https://golang.org/cl/5437142
      0a5508c6
    • Andrew Gerrand's avatar
      hash: rewrite comment on Hash.Sum method · ca7d86c4
      Andrew Gerrand authored
      Fixes #2530.
      
      R=golang-dev, agl
      CC=golang-dev
      https://golang.org/cl/5449101
      ca7d86c4
    • Rob Pike's avatar
      fmt: only use Stringer or Error for strings · 2ed57a8c
      Rob Pike authored
      This is a slight change to fmt's semantics, but means that if you use
      %d to print an integer with a Stringable value, it will print as an integer.
      This came up because Time.Month() couldn't cleanly print as an integer
      rather than a name. Using %d on Stringables is silly anyway, so there
      should be no effect outside the fmt tests.
      As a mild bonus, certain recursive failures of String methods
      will also be avoided this way.
      
      R=golang-dev, adg
      CC=golang-dev
      https://golang.org/cl/5453053
      2ed57a8c
  2. 05 Dec, 2011 13 commits
  3. 04 Dec, 2011 1 commit
  4. 02 Dec, 2011 19 commits