1. 05 Jun, 2017 12 commits
  2. 03 Jun, 2017 2 commits
  3. 02 Jun, 2017 7 commits
  4. 01 Jun, 2017 2 commits
    • Ian Lance Taylor's avatar
      sort: clarify comment about not-a-number values · da1b8306
      Ian Lance Taylor authored
      Updates #20540
      
      Change-Id: I864008fadd77b0aeb10fe7e7f1ec696516a5add5
      Reviewed-on: https://go-review.googlesource.com/44492Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
      da1b8306
    • Ilya Tocar's avatar
      cmd/compile/internal/gc: speed-up small array comparison · 3bdc2f3a
      Ilya Tocar authored
      Currently we inline array comparisons for arrays with at most 4 elements.
      Compare arrays with small size, but more than 4 elements (e. g. [16]byte)
      with larger compares. This provides very slightly smaller binaries,
      and results in faster code.
      
      ArrayEqual-6  7.41ns ± 0%  3.17ns ± 0%  -57.15%  (p=0.000 n=10+10)
      
      For go tool:
      global text (code) = -559 bytes (-0.014566%)
      
      This also helps mapaccess1_faststr, and maps in general:
      
      MapDelete/Str/1-6               195ns ± 1%     186ns ± 2%   -4.47%  (p=0.000 n=10+10)
      MapDelete/Str/2-6               211ns ± 1%     177ns ± 1%  -16.01%  (p=0.000 n=10+10)
      MapDelete/Str/4-6               225ns ± 1%     183ns ± 1%  -18.49%  (p=0.000 n=8+10)
      MapStringKeysEight_16-6        31.3ns ± 0%    28.6ns ± 0%   -8.63%  (p=0.000 n=6+9)
      MapStringKeysEight_32-6        29.2ns ± 0%    27.6ns ± 0%   -5.45%  (p=0.000 n=10+10)
      MapStringKeysEight_64-6        29.1ns ± 1%    27.5ns ± 0%   -5.46%  (p=0.000 n=10+10)
      MapStringKeysEight_1M-6        29.1ns ± 1%    27.6ns ± 0%   -5.49%  (p=0.000 n=10+10)
      
      Change-Id: I9ec98e41b233031e0e96c4e13d86a324f628ed4a
      Reviewed-on: https://go-review.googlesource.com/40771
      Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      3bdc2f3a
  5. 31 May, 2017 6 commits
  6. 30 May, 2017 5 commits
  7. 29 May, 2017 3 commits
  8. 28 May, 2017 1 commit
  9. 26 May, 2017 2 commits
    • Heschi Kreinick's avatar
      cmd/internal/dwarf: update to DWARF4, emit frame_base · b74f01d7
      Heschi Kreinick authored
      In preparation for CL 41770, upgrade .debug_info to DWARF4, and emit
      DW_AT_frame_base on subprograms. This should make no semantic
      difference.
      
      Also fix a long-standing bug/inconsistency in puttattr: it didn't
      add the addend to ref_addrs. Previously this didn't matter because it
      was only used for types, but now it's used for section offsets into
      symbols that have multiple entries.
      
      RELNOTE=yes
      
      Change-Id: Ib10654ac92edfa29c5167c44133648151d70cf76
      Reviewed-on: https://go-review.googlesource.com/44210Reviewed-by: default avatarHyang-Ah Hana Kim <hyangah@gmail.com>
      b74f01d7
    • Filip Gruszczyński's avatar
      encoding/gob: speedup decoding of maps by zeroing values · 11ab865d
      Filip Gruszczyński authored
      Instead of allocating a new reflect.Value object on every loop we zero it.
      
      DecodeComplex128Slice-8  13.1µs ± 7%  13.2µs ± 8%     ~     (p=0.347 n=18+19)
      DecodeFloat64Slice-8     8.13µs ± 5%  8.00µs ± 3%     ~     (p=0.168 n=20+19)
      DecodeInt32Slice-8       8.27µs ± 5%  8.08µs ± 5%   -2.27%  (p=0.001 n=19+18)
      DecodeStringSlice-8      17.9µs ±12%  17.8µs ±11%     ~     (p=0.989 n=20+19)
      DecodeInterfaceSlice-8    163µs ±10%   159µs ± 4%     ~     (p=0.057 n=19+19)
      DecodeMap-8               220µs ± 2%   183µs ± 1%  -17.07%  (p=0.000 n=19+18)
      
      Updates #19525
      
      Change-Id: I27f8edd4761787f6b9928d34cefa08a34a6e25b2
      Reviewed-on: https://go-review.googlesource.com/39203Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      11ab865d