1. 05 Dec, 2018 12 commits
  2. 04 Dec, 2018 14 commits
  3. 03 Dec, 2018 10 commits
  4. 02 Dec, 2018 2 commits
  5. 01 Dec, 2018 2 commits
    • Daniel Martí's avatar
      cmd/compile: add Buffer.Grow to TestIntendedInlining · b3972481
      Daniel Martí authored
      golang.org/cl/151977 slightly decreased the cost of inlining an extra
      call from 60 to 57, since it was a safe change that could help in some
      scenarios.
      
      One notable change spotted in that CL is that bytes.Buffer.Grow is now
      inlinable, meaning that a fixedbugs test needed updating.
      
      For consistency, add the test case to TestIntendedInlining too,
      alongside other commonly used bytes.Buffer methods.
      
      Change-Id: I4fb402fc684ef4c543fc65aea343ca1a4d73a189
      Reviewed-on: https://go-review.googlesource.com/c/151979
      Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      b3972481
    • David Chase's avatar
      cmd/compile: decrease inlining call cost from 60 to 57 · 624e197c
      David Chase authored
      A Go user made a well-documented request for a slightly
      lower threshold.  I tested against a selection of other
      people's benchmarks, and saw a tiny benefit (possibly noise)
      at equally tiny cost, and no unpleasant surprises observed
      in benchmarking.
      
      I.e., might help, doesn't hurt, low risk, request was
      delivered on a silver platter.
      
      It did, however, change the behavior of one test because
      now bytes.Buffer.Grow is eligible for inlining.
      
      Updates #19348.
      
      Change-Id: I85e3088a4911290872b8c6bda9601b5354c48695
      Reviewed-on: https://go-review.googlesource.com/c/151977
      Run-TryBot: David Chase <drchase@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarKeith Randall <khr@golang.org>
      624e197c