1. 18 Jun, 2014 2 commits
    • Rui Ueyama's avatar
      strings: add fast path to Replace · 14950d89
      Rui Ueyama authored
      genericReplacer.lookup is called for each byte of an input
      string. In many (most?) cases, lookup will fail for the first
      byte, and it will return immediately. Adding a fast path for
      that case seems worth it.
      
      Benchmark on my Xeon 3.5GHz Linux box:
      
      benchmark                        old ns/op    new ns/op    delta
      BenchmarkGenericNoMatch               2691          774  -71.24%
      BenchmarkGenericMatch1                7920         8151   +2.92%
      BenchmarkGenericMatch2               52336        39927  -23.71%
      BenchmarkSingleMaxSkipping            1575         1575   +0.00%
      BenchmarkSingleLongSuffixFail         1429         1429   +0.00%
      BenchmarkSingleMatch                 56228        55444   -1.39%
      BenchmarkByteByteNoMatch               568          568   +0.00%
      BenchmarkByteByteMatch                 977          972   -0.51%
      BenchmarkByteStringMatch              1669         1687   +1.08%
      BenchmarkHTMLEscapeNew                 422          422   +0.00%
      BenchmarkHTMLEscapeOld                 692          670   -3.18%
      BenchmarkByteByteReplaces             8492         8474   -0.21%
      BenchmarkByteByteMap                  2817         2808   -0.32%
      
      LGTM=rsc
      R=golang-codereviews, bradfitz, dave, rsc
      CC=golang-codereviews
      https://golang.org/cl/79200044
      14950d89
    • Keith Randall's avatar
      runtime: fix gogetcallerpc. · 14c8143c
      Keith Randall authored
      Make assembly govet-clean.
      Clean up fixes for CL 93380044.
      
      LGTM=rsc
      R=rsc
      CC=golang-codereviews
      https://golang.org/cl/107160047
      14c8143c
  2. 17 Jun, 2014 15 commits
  3. 16 Jun, 2014 3 commits
  4. 14 Jun, 2014 3 commits
  5. 13 Jun, 2014 11 commits
  6. 12 Jun, 2014 6 commits