1. 22 May, 2013 7 commits
  2. 21 May, 2013 11 commits
  3. 20 May, 2013 14 commits
  4. 19 May, 2013 2 commits
  5. 18 May, 2013 5 commits
  6. 17 May, 2013 1 commit
    • Brad Fitzpatrick's avatar
      bufio: make Reader buffer transient · b25a53ac
      Brad Fitzpatrick authored
      Share garbage between different bufio Readers. When a Reader
      has zero buffered data, put its buffer into a pool.
      
      This acknowledges that most bufio.Readers eventually get
      read to completion, and their buffers are then no longer
      needed.
      
      benchmark               old ns/op    new ns/op    delta
      BenchmarkReaderEmpty         2993         1058  -64.65%
      
      benchmark              old allocs   new allocs    delta
      BenchmarkReaderEmpty            3            2  -33.33%
      
      benchmark               old bytes    new bytes    delta
      BenchmarkReaderEmpty         4278          133  -96.89%
      
      Update #5100
      
      R=r
      CC=adg, dvyukov, gobot, golang-dev, rogpeppe
      https://golang.org/cl/8819049
      b25a53ac