1. 25 Mar, 2015 5 commits
  2. 24 Mar, 2015 26 commits
  3. 23 Mar, 2015 9 commits
    • Nigel Tao's avatar
      image/internal/imageutil: new package, used by image/draw and image/jpeg. · b2f29511
      Nigel Tao authored
      The imageutil.DrawYCbCr function lives in an internal package because it
      is needed by both the image/draw and image/jpeg packages, but it doesn't
      seem right for one of those two to depend on the other.
      
      It could eventually go into the image package, but that would require
      committing to an API for the rest of Go 1.x.
      
      Change-Id: I7b12555c970d86409365e99eef9360702aaffa30
      Reviewed-on: https://go-review.googlesource.com/7925Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      b2f29511
    • Sebastien Binet's avatar
      cmd/go: allow go get with local path · db454afd
      Sebastien Binet authored
      Previously, running 'go get' with a local path would correctly
      download the package but fail to install it.
      This is because a sticky error - resulting from discovering that the
      package needed to be downloaded - was still around.
      Theoretically, such sticky errors would be cleared but they weren't
      because the map tracking these errors were indexed with the correct
      canonical import path of the package (e.g. "ex.com/x/pkg") whereas the
      clearing was done with the local path (e.g. "./pkg".)
      
      Always use the canonical import path.
      
      Fixes #9767
      
      Change-Id: Ia0e8a51ac591d4c833d11285da5b767ef7ed8ad2
      Reviewed-on: https://go-review.googlesource.com/6266Reviewed-by: default avatarRob Pike <r@golang.org>
      db454afd
    • Brad Fitzpatrick's avatar
      regexp: fix link to RE2 syntax · fc9a234d
      Brad Fitzpatrick authored
      Fixes #10224
      
      Change-Id: I21037379b4667575e51ab0b6b683138c505c3f68
      Reviewed-on: https://go-review.googlesource.com/7960Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
      fc9a234d
    • Brad Fitzpatrick's avatar
      doc: add cmd/trace to go1.5.txt · 715d017b
      Brad Fitzpatrick authored
      Change-Id: I4d35a96ace71b68a91561c08fd7331859d9dd19d
      Reviewed-on: https://go-review.googlesource.com/5593Reviewed-by: default avatarDmitry Vyukov <dvyukov@google.com>
      715d017b
    • Brad Fitzpatrick's avatar
      doc: update go1.5.txt · 2b2f09be
      Brad Fitzpatrick authored
      Change-Id: Ie45d45649ea978becf84eb911cf4ace1dd237d9e
      Reviewed-on: https://go-review.googlesource.com/7918Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      2b2f09be
    • Robert Griesemer's avatar
      doc/go1.5.txt: updated (composite literal lang. change, math/big.Float support) · 754bb715
      Robert Griesemer authored
      Change-Id: Ib8df771957f9a5bf00bee7eb8cb361d4acd5813f
      Reviewed-on: https://go-review.googlesource.com/7911Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      754bb715
    • David Crawshaw's avatar
      syscall: disable test that forks on darwin/arm · 9ee6baa8
      David Crawshaw authored
      This test was introduced in cl/5130 and broke the darwin/arm builder.
      
      Also check some errors, which was making the failure hard to decipher.
      
      Change-Id: Ifb1d60b9971782cf8d2e979d83f8a81249d7ee9b
      Reviewed-on: https://go-review.googlesource.com/7932Reviewed-by: default avatarRob Pike <r@golang.org>
      9ee6baa8
    • Joe Harrison's avatar
      mime: add "image/svg+xml" type for extension ".svg" · 21e47d83
      Joe Harrison authored
      Since there is internal usage of svg files in cmd/trace served via
      HTTP, add it to the (small) map of mime types.
      
      MIME type as documented at http://www.w3.org/TR/SVG11/mimereg.html
      
      Change-Id: If14f07cbe2e55d8d68af663f30920a530e2e7974
      Reviewed-on: https://go-review.googlesource.com/7942Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      21e47d83
    • Michael Matloob's avatar
      regexp: port RE2's bitstate backtracker to the regexp package · 93238623
      Michael Matloob authored
      This is a port of RE2's bitstate backtracker, which triggers under
      the same conditions that the RE2 backtracker triggers.  However I wasn't
      sure how to port over some of the optimizations in the RE2 backtracker,
      and there is a ~2% penalty on benchmarks that don't trigger the backtracker.
      
      benchmark                                 old ns/op      new ns/op      delta
      BenchmarkLiteral                          312            189            -39.42%
      BenchmarkNotLiteral                       4435           3001           -32.33%
      BenchmarkMatchClass                       5758           4378           -23.97%
      BenchmarkMatchClass_InRange               5385           4084           -24.16%
      BenchmarkReplaceAll                       5291           3505           -33.76%
      BenchmarkAnchoredLiteralShortNonMatch     190            200            +5.26%
      BenchmarkAnchoredLiteralLongNonMatch      189            194            +2.65%
      BenchmarkAnchoredShortMatch               479            304            -36.53%
      BenchmarkAnchoredLongMatch                478            499            +4.39%
      BenchmarkOnePassShortA                    791            798            +0.88%
      BenchmarkNotOnePassShortA                 3202           1571           -50.94%
      BenchmarkOnePassShortB                    614            633            +3.09%
      BenchmarkNotOnePassShortB                 2685           881            -67.19%
      BenchmarkOnePassLongPrefix                152            154            +1.32%
      BenchmarkOnePassLongNotPrefix             505            533            +5.54%
      BenchmarkMatchEasy0_32                    139            171            +23.02%
      BenchmarkMatchEasy0_1K                    653            1797           +175.19%
      BenchmarkMatchEasy0_32K                   12032          13346          +10.92%
      BenchmarkMatchEasy0_1M                    462882         461272         -0.35%
      BenchmarkMatchEasy0_32M                   15015339       15365238       +2.33%
      BenchmarkMatchEasy1_32                    122            168            +37.70%
      BenchmarkMatchEasy1_1K                    3339           2612           -21.77%
      BenchmarkMatchEasy1_32K                   72330          71721          -0.84%
      BenchmarkMatchEasy1_1M                    2545410        2652284        +4.20%
      BenchmarkMatchEasy1_32M                   80072063       82609750       +3.17%
      BenchmarkMatchMedium_32                   2359           1980           -16.07%
      BenchmarkMatchMedium_1K                   75939          58593          -22.84%
      BenchmarkMatchMedium_32K                  2450907        2501106        +2.05%
      BenchmarkMatchMedium_1M                   78707697       80174418       +1.86%
      BenchmarkMatchMedium_32M                  2535146010     2570896441     +1.41%
      BenchmarkMatchHard_32                     4297           2960           -31.11%
      BenchmarkMatchHard_1K                     133592         88997          -33.38%
      BenchmarkMatchHard_32K                    4240445        4336907        +2.27%
      BenchmarkMatchHard_1M                     136187006      139350238      +2.32%
      BenchmarkMatchHard_32M                    4350855890     4478537306     +2.93%
      
      benchmark                    old MB/s     new MB/s     speedup
      BenchmarkMatchEasy0_32       228.74       186.11       0.81x
      BenchmarkMatchEasy0_1K       1565.91      569.64       0.36x
      BenchmarkMatchEasy0_32K      2723.31      2455.10      0.90x
      BenchmarkMatchEasy0_1M       2265.32      2273.22      1.00x
      BenchmarkMatchEasy0_32M      2234.68      2183.79      0.98x
      BenchmarkMatchEasy1_32       261.08       190.22       0.73x
      BenchmarkMatchEasy1_1K       306.59       391.91       1.28x
      BenchmarkMatchEasy1_32K      453.03       456.88       1.01x
      BenchmarkMatchEasy1_1M       411.95       395.35       0.96x
      BenchmarkMatchEasy1_32M      419.05       406.18       0.97x
      BenchmarkMatchMedium_32      13.56        16.16        1.19x
      BenchmarkMatchMedium_1K      13.48        17.48        1.30x
      BenchmarkMatchMedium_32K     13.37        13.10        0.98x
      BenchmarkMatchMedium_1M      13.32        13.08        0.98x
      BenchmarkMatchMedium_32M     13.24        13.05        0.99x
      BenchmarkMatchHard_32        7.45         10.81        1.45x
      BenchmarkMatchHard_1K        7.67         11.51        1.50x
      BenchmarkMatchHard_32K       7.73         7.56         0.98x
      BenchmarkMatchHard_1M        7.70         7.52         0.98x
      BenchmarkMatchHard_32M       7.71         7.49         0.97x
      
      Fixes #4154
      
      Change-Id: Iff7fb9507f0872b320d08afc08679751ed1b28bc
      Reviewed-on: https://go-review.googlesource.com/2153Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      93238623