1. 23 Mar, 2015 8 commits
    • 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
    • Michael MacInnis's avatar
      syscall: Add Foreground and Pgid to SysProcAttr · f7befa43
      Michael MacInnis authored
      On Unix, when placing a child in a new process group, allow that group
      to become the foreground process group. Also, allow a child process to
      join a specific process group.
      
      When setting the foreground process group, Ctty is used as the file
      descriptor of the controlling terminal. Ctty has been added to the BSD
      and Solaris SysProcAttr structures and the handling of Setctty changed
      to match Linux.
      
      Change-Id: I18d169a6c5ab8a6a90708c4ff52eb4aded50bc8c
      Reviewed-on: https://go-review.googlesource.com/5130
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      f7befa43
    • David Crawshaw's avatar
      net/http: enable segfaulting test on darwin/arm · 5bf9249e
      David Crawshaw authored
      Issue #10043 was resolved by https://golang.org/cl/7072.
      This test now passes.
      
      Change-Id: I7bdef63d9ee4edcede23613a14a2ddce14018f34
      Reviewed-on: https://go-review.googlesource.com/7931Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      5bf9249e
    • Mikio Hara's avatar
      net: fix TestInterfaces, TestInterfaceAddrs on platforms without loopback interface · 14082fad
      Mikio Hara authored
      Fixes #10214.
      
      Change-Id: If29d26c590eb53d4976e0a6ace0ed33aaf0c3e80
      Reviewed-on: https://go-review.googlesource.com/7924Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      14082fad
    • Brad Fitzpatrick's avatar
      net/http: ignore the Unix epoch time in ServeContent · a0fb8f8c
      Brad Fitzpatrick authored
      ServeContent ignored zero time.Time{} values when generating
      Last-Modified response headers and checking If-Modified-Since request
      headers. Do the same for a time.Time representing the Unix epoch zero
      value, as this is a common bogus value. Callers who really want to
      send that value (incredibly unlikely) can add a nanosecond to it and
      it will be truncated to second granularity anyway.
      
      Fixes #9842
      
      Change-Id: I69f697bfc4017404a92a34e3fe57e2711c1e299d
      Reviewed-on: https://go-review.googlesource.com/7915Reviewed-by: default avatarDavid Symonds <dsymonds@golang.org>
      a0fb8f8c
  2. 21 Mar, 2015 3 commits
  3. 20 Mar, 2015 28 commits
  4. 19 Mar, 2015 1 commit