]> Cypherpunks repositories - gostls13.git/commit
fmt: speed up floating point print, clean up some code
authorRob Pike <r@golang.org>
Thu, 15 Dec 2011 20:52:29 +0000 (12:52 -0800)
committerRob Pike <r@golang.org>
Thu, 15 Dec 2011 20:52:29 +0000 (12:52 -0800)
commit04faa08c070191a7c187e4ff3a9eb7ed9b6b38a6
tree7f6bd2f72f34f5b175341df1dd6596f37e41e09b
parent29264c6f4f341586b733e2c5b165ca627b6050d8
fmt: speed up floating point print, clean up some code
%g down to two mallocs from four. Also a mild speedup.

fmt_test.BenchmarkSprintfFloat         3016         2703  -10.38%

Fixes #2557.

R=rsc
CC=golang-dev
https://golang.org/cl/5491054
src/pkg/fmt/format.go
src/pkg/fmt/print.go