1
0
mirror of https://github.com/golang/go synced 2024-10-05 01:21:21 -06:00
go/src/fmt
Brad Fitzpatrick 0656da910a fmt: hold on to all free buffers, regardless of size
This code made sense before fmt switched to using sync.Pool, but a
sync.Pool clears all items on GC, so not reusing something based on
size is just a waste of memory.

Change-Id: I201312b0ee6c572ff3c0ffaf71e42623a160d23f
Reviewed-on: https://go-review.googlesource.com/21480
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-04-03 06:20:37 +00:00
..
doc.go fmt: clarify reflect.Value printing 2015-10-19 18:29:36 +00:00
export_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
fmt_test.go fmt: fix padding for 0 precision 0 integer value formatting 2016-03-30 00:44:01 +00:00
format.go fmt: fix padding for 0 precision 0 integer value formatting 2016-03-30 00:44:01 +00:00
print.go fmt: hold on to all free buffers, regardless of size 2016-04-03 06:20:37 +00:00
scan_test.go all: delete dead test code 2016-03-21 07:10:08 +00:00
scan.go fmt: replace variables for type bit sizes with constants 2016-03-16 01:38:54 +00:00
stringer_test.go