Descriptiongo/printer, gofmt: more performance tweaks
Removed more string conversions and streamlined bottleneck
printing interface by removing unnecessary tests where possible.
About 6% faster AST printing.
Before:
- printer.BenchmarkPrint 50 32056640 ns/op
After:
- printer.BenchmarkPrint 50 30138440 ns/op (-6%)
Patch Set 1 #Patch Set 2 : diff -r 4b38f89d933d https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 4b38f89d933d https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 4b38f89d933d https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 4b38f89d933d https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 4b38f89d933d https://go.googlecode.com/hg/ #
Total comments: 4
Patch Set 7 : diff -r 5641d1093e82 https://go.googlecode.com/hg/ #MessagesTotal messages: 4
|