1. 13 Jul, 2012 4 commits
  2. 12 Jul, 2012 7 commits
  3. 11 Jul, 2012 4 commits
  4. 10 Jul, 2012 3 commits
    • Adam Langley's avatar
      encoding/asn1: promote untyped strings to UTF8 as needed. · eeffa738
      Adam Langley authored
      Previously, strings that didn't have an explicit ASN.1 string type
      were taken to be ASN.1 PrintableStrings. This resulted in an error if
      a unrepresentable charactor was included.
      
      For compatibility reasons, I'm too afraid to switch the default string
      type to UTF8String, but this patch causes untyped strings to become
      UTF8Strings if they contain a charactor that's not valid in a
      PrintableString.
      
      Fixes #3791.
      
      R=golang-dev, bradfitz, r, r
      CC=golang-dev
      https://golang.org/cl/6348074
      eeffa738
    • Adam Langley's avatar
      crypto/x509: exempt broken Entrust certificate from checks. · 685a61df
      Adam Langley authored
      Entrust have issued a root certificate that's not marked as valid for
      signing certificates.
      
      This results in Go programs failing to validate certificates that
      chain up to this root (i.e. gateway.push.apple.com:2195).
      
      Although this is clearly a mistake on Entrust's part, it seems that we
      will have to bodge around it.
      
      R=golang-dev, dave, r
      CC=golang-dev
      https://golang.org/cl/6346064
      685a61df
    • Rémy Oudompheng's avatar
      strconv: extend Grisu3 algorithm to float32. · d6147d81
      Rémy Oudompheng authored
      Also improve extfloat.Normalize to obtain a modest performance
      gain in parsing, and add a shortcut path for exact integers.
      
      benchmark                              old ns/op    new ns/op    delta
      BenchmarkAtof64Decimal                        73           73   -0.54%
      BenchmarkAtof64Float                          91           91   -0.54%
      BenchmarkAtof64FloatExp                      198          180   -9.09%
      BenchmarkAtof64Big                           307          308   +0.33%
      
      BenchmarkAtof32Decimal                        72           72   +0.42%
      BenchmarkAtof32Float                          83           83   -0.72%
      BenchmarkAtof32FloatExp                      212          186  -12.26%
      BenchmarkAtof32Random                        262          250   -4.58%
      
      BenchmarkAppendFloatDecimal                  474          305  -35.65%
      BenchmarkAppendFloat                         497          489   -1.61%
      BenchmarkAppendFloatExp                      493          483   -2.03%
      BenchmarkAppendFloatNegExp                   481          481   +0.00%
      BenchmarkAppendFloatBig                      667          652   -2.25%
      
      BenchmarkAppendFloat32Integer                338          307   -9.17%
      BenchmarkAppendFloat32ExactFraction          364          439  +20.60%
      BenchmarkAppendFloat32Point                 1299          490  -62.28%
      BenchmarkAppendFloat32Exp                   2593          489  -81.14%
      BenchmarkAppendFloat32NegExp                5116          481  -90.60%
      
      R=rsc, r
      CC=golang-dev, remy
      https://golang.org/cl/6303087
      d6147d81
  5. 09 Jul, 2012 1 commit
  6. 08 Jul, 2012 4 commits
  7. 06 Jul, 2012 1 commit
  8. 05 Jul, 2012 2 commits
  9. 04 Jul, 2012 1 commit
  10. 03 Jul, 2012 8 commits
  11. 02 Jul, 2012 5 commits
    • Nigel Tao's avatar
      cmd/gc: cache itab lookup in convT2I. · 18e86644
      Nigel Tao authored
      There may be further savings if convT2I can avoid the function call
      if the cache is good and T is uintptr-shaped, a la convT2E, but that
      will be a follow-up CL.
      
      src/pkg/runtime:
      benchmark                  old ns/op    new ns/op    delta
      BenchmarkConvT2ISmall             43           15  -64.01%
      BenchmarkConvT2IUintptr           45           14  -67.48%
      BenchmarkConvT2ILarge            130          101  -22.31%
      
      test/bench/go1:
      benchmark                 old ns/op    new ns/op    delta
      BenchmarkBinaryTree17    8588997000   8499058000   -1.05%
      BenchmarkFannkuch11      5300392000   5358093000   +1.09%
      BenchmarkGobDecode         30295580     31040190   +2.46%
      BenchmarkGobEncode         18102070     17675650   -2.36%
      BenchmarkGzip             774191400    771591400   -0.34%
      BenchmarkGunzip           245915100    247464100   +0.63%
      BenchmarkJSONEncode       123577000    121423050   -1.74%
      BenchmarkJSONDecode       451969800    596256200  +31.92%
      BenchmarkMandelbrot200     10060050     10072880   +0.13%
      BenchmarkParse             10989840     11037710   +0.44%
      BenchmarkRevcomp         1782666000   1716864000   -3.69%
      BenchmarkTemplate         798286600    723234400   -9.40%
      
      R=rsc, bradfitz, go.peter.90, daniel.morsing, dave, uriel
      CC=golang-dev
      https://golang.org/cl/6337058
      18e86644
    • David G. Andersen's avatar
      math/big: Remove unnecessary test from nat.go multiplication · 917f7643
      David G. Andersen authored
      The switch at the beginning of the function already ensures n > 1,
      so testing for n < 2 is redundant.
      
      R=golang-dev, gri
      CC=golang-dev
      https://golang.org/cl/6350051
      917f7643
    • Dmitriy Vyukov's avatar
      reflect: set GOMAXPROCS=1 in the malloc test · 21de1ab3
      Dmitriy Vyukov authored
      Occasionally I see:
      --- FAIL: TestAllocations-15 (0.00 seconds)
              all_test.go:1575: 6 mallocs after 100 iterations
      Tested:
      $ go test -cpu=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 reflect
      
      R=golang-dev, dsymonds, r
      CC=golang-dev
      https://golang.org/cl/6354063
      21de1ab3
    • Dmitriy Vyukov's avatar
      net/http: fix comment · 804e562a
      Dmitriy Vyukov authored
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/6348062
      804e562a
    • Shenghou Ma's avatar
      image: fix doc typo · 435a001d
      Shenghou Ma authored
           Fixes #3789.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/6357058
      435a001d