1. 27 Oct, 2016 3 commits
    • Klaus Post's avatar
      compress/flate: make compression level 0 consistent · 461adfd8
      Klaus Post authored
      Tests for determinism was not working as intended since io.Copybuffer
      uses the io.WriterTo if available.
      
      This exposed that level 0 (no compression) changed output
      based on the number of writes and buffers given to the
      writer.
      
      Previously, Write would emit a new raw block (BTYPE=00) for
      every non-empty call to Write.
      
      This CL fixes it such that a raw block is only emitted upon
      the following conditions:
       	* A full window is obtained (every 65535 bytes)
       	* Flush is called
       	* Close is called
      
      Change-Id: I807f866d97e2db7820f11febab30a96266a6cbf1
      Reviewed-on: https://go-review.googlesource.com/31174
      Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarJoe Tsai <thebrokentoaster@gmail.com>
      461adfd8
    • Klaus Post's avatar
      compress/flate: level 1 (best speed) match across blocks · 2e196b15
      Klaus Post authored
      This change makes deflate level 1 (best speed) match across
      block boundaries. This comes at a small speed penalty,
      but improves compression on almost all output.
      
      Sample numbers on various content types:
      
      enwik9:            391052014 ->  382578469 bytes, 77.59 -> 74.28 MB/s
      adresser.001:       57269799 ->   47756095 bytes, 287.84 -> 357.86 MB/s
      10gb:             5233055166 -> 5198328382 bytes, 105.85 -> 96.99 MB/s
      rawstudio-mint14: 3972329211 -> 3927423364 bytes, 100.07 -> 94.22 MB/s
      sites:             165556800 ->  163178702 bytes, 72.31 -> 70.15 MB/s
      objectfiles:       115962472 ->  111649524 bytes, 132.60 -> 128.05 MB/s
      sharnd.out:        200015283 ->  200015283 bytes, 221.50 -> 218.83 MB/s
      
      Change-Id: I62a139e5c06976e803439a4268acede5139b8cfc
      Reviewed-on: https://go-review.googlesource.com/31640Reviewed-by: default avatarJoe Tsai <thebrokentoaster@gmail.com>
      Reviewed-by: default avatarNigel Tao <nigeltao@golang.org>
      2e196b15
    • Hiroshi Ioka's avatar
      cmd/compile/internal/gc: remove EscScope · f8a34443
      Hiroshi Ioka authored
      EscScope behaves like EscHeap in current code.
      There are no need to handle it specially.
      So remove it and use EscHeap instead.
      
      Change-Id: I910106fd147f00e5f4fd52c7dde05128141a5160
      Reviewed-on: https://go-review.googlesource.com/32130
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      f8a34443
  2. 26 Oct, 2016 35 commits
  3. 25 Oct, 2016 2 commits