1. 09 Oct, 2017 5 commits
    • Gabriel Aszalos's avatar
      runtime: remove the 'go:nosplit' directive from documentation · a04adcaf
      Gabriel Aszalos authored
      The //go:nosplit directive was visible in GoDoc because the function
      that it preceeded (Gosched) is exported. This change moves the directive
      above the documentation, hiding it from the output.
      
      Change-Id: I281fd7573f11d977487809f74c9cc16b2af0dc88
      Reviewed-on: https://go-review.googlesource.com/69120
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      a04adcaf
    • Josselin Costanzi's avatar
      encoding/base64: optimize DecodeString · 244c98fe
      Josselin Costanzi authored
      Optimize base64 decoding speed by adding 32-bits and 64-bits specialized
      methods that don't perform any error checking and fall back to the more
      complex decodeQuantum method when a non-base64 character is present.
      
      On a 64-bits cpu:
      
      name                 old time/op    new time/op     delta
      DecodeString/2-4       70.0ns ± 6%     69.2ns ± 0%     ~     (p=0.169 n=5+8)
      DecodeString/4-4       91.3ns ± 2%     80.4ns ± 0%  -11.89%  (p=0.001 n=5+10)
      DecodeString/8-4        126ns ± 5%      106ns ± 0%  -16.14%  (p=0.000 n=5+7)
      DecodeString/64-4       652ns ±21%      361ns ± 0%  -44.57%  (p=0.000 n=5+7)
      DecodeString/8192-4    61.0µs ±13%     31.5µs ± 1%  -48.38%  (p=0.001 n=5+9)
      
      name                 old speed      new speed       delta
      DecodeString/2-4     57.2MB/s ± 6%   57.7MB/s ± 2%     ~     (p=0.419 n=5+9)
      DecodeString/4-4     87.7MB/s ± 2%   99.5MB/s ± 0%  +13.45%  (p=0.001 n=5+10)
      DecodeString/8-4     94.8MB/s ± 5%  112.6MB/s ± 1%  +18.82%  (p=0.001 n=5+9)
      DecodeString/64-4     136MB/s ±19%    243MB/s ± 0%  +78.17%  (p=0.003 n=5+7)
      DecodeString/8192-4   180MB/s ±11%    347MB/s ± 1%  +92.94%  (p=0.001 n=5+9)
      
      Improves #19636
      
      Change-Id: Ic10a454851093a7e1d46ca0c140deed73535d990
      Reviewed-on: https://go-review.googlesource.com/38632
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      244c98fe
    • Daniel Martí's avatar
      cmd/vet: skip self-assigns with side effects · 320b0cdd
      Daniel Martí authored
      The existing logic for whether the left and right parts of an assignment
      were equal only checked that the gofmt representation of the two was
      equal. This only checks that the ASTs were equal.
      
      However, that method is flawed. For example, if either of the
      expressions contains a function call, the expressions may actually be
      different even if their ASTs are the same. An obvious case is a func
      call to math/rand to get a random integer, such as the one added in the
      test.
      
      If either of the expressions may have side effects, simply skip the
      check. Reuse the logic from bool.go's hasSideEffects.
      
      Fixes #22174.
      
      Change-Id: Ied7f7543dc2bb8852e817230756c6d23bc801d90
      Reviewed-on: https://go-review.googlesource.com/69116
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarRob Pike <r@golang.org>
      320b0cdd
    • Elias Naur's avatar
      misc/cgo/testcarchive: skip flaky SIGPROF test on darwin · 07c01e39
      Elias Naur authored
      Updates #19320.
      
      Change-Id: Id38df033e3f0873986e668c8ff3855b6e08407a9
      Reviewed-on: https://go-review.googlesource.com/69114
      Run-TryBot: Elias Naur <elias.naur@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      07c01e39
    • Ian Lance Taylor's avatar
      misc/cgo/testcshared: don't overwrite cc in parallel runs · 24f9db7c
      Ian Lance Taylor authored
      Fixes #22176
      
      Change-Id: If47ec9a25da6b480868d8eeccc518dc97d48bda7
      Reviewed-on: https://go-review.googlesource.com/69230Reviewed-by: 's avatarAlex Brainman <alex.brainman@gmail.com>
      24f9db7c
  2. 08 Oct, 2017 3 commits
  3. 07 Oct, 2017 4 commits
  4. 06 Oct, 2017 16 commits
  5. 05 Oct, 2017 12 commits