]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile/ssa: print lazily
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 10 Jul 2015 15:31:28 +0000 (09:31 -0600)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 11 Jul 2015 00:07:52 +0000 (00:07 +0000)
Reduces 'go run run.go 64bit.go' from 23s to 8s on my machine.

Change-Id: Ie5b642d0abb56e8eb3899d69472bc88a85a1c985
Reviewed-on: https://go-review.googlesource.com/12023
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/print.go

index 286152a0010b62ade6818e033bfda26a9f32d461..14d88dccd54c8c92eb67643d6d93d17a5801c5bf 100644 (file)
@@ -11,7 +11,7 @@ import (
 )
 
 func printFunc(f *Func) {
-       f.Logf("%s", f.String())
+       f.Logf("%s", f)
 }
 
 func (f *Func) String() string {