Files
docker-cli/components/engine/pkg
Brian Goff 8a8affba81 Optimizations for StdWriter
Avoids allocations and copying by using a buffer pool for intermediate
writes.

```
benchmark            old ns/op     new ns/op     delta
BenchmarkWrite-8     996           175           -82.43%

benchmark            old MB/s     new MB/s     speedup
BenchmarkWrite-8     4414.48      25069.46     5.68x

benchmark            old allocs     new allocs     delta
BenchmarkWrite-8     2              0              -100.00%

benchmark            old bytes     new bytes     delta
BenchmarkWrite-8     4616          0             -100.00%
```

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 2f3b6022858aab2d70e380d126e6dcec227c0d38
Component: engine
2016-03-25 22:14:27 -04:00
..
2016-02-09 14:02:26 -05:00
2015-12-13 18:04:12 +02:00
2016-03-21 22:03:24 -07:00
2016-03-23 15:34:15 -04:00
2015-07-27 21:26:21 +02:00
2015-12-13 18:04:12 +02:00
2015-12-13 18:04:12 +02:00
2016-03-25 22:14:27 -04:00
2015-12-22 13:31:43 -05:00
2016-03-08 07:55:01 -08:00
2015-11-02 08:02:25 -08:00
2015-12-17 11:52:23 +01:00

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!