]> Cypherpunks repositories - gostls13.git/commit
go/format: skip go/ast's object resolution
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 21 Apr 2022 13:06:20 +0000 (14:06 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 21 Apr 2022 21:07:18 +0000 (21:07 +0000)
commit430ae97a2599e840bdeb934d5be171efb4a41272
tree03c59eb9dee3bba58c5c6d507b44c2de895a8fbe
parentf5af1e83a526146a12af48df9d5c9851e24569d7
go/format: skip go/ast's object resolution

Just like https://golang.org/cl/401454 removed the work from gofmt for a
nice ~5% speed-up in the default case, we can also use the option in the
equivalent go/format for programs which use it rather than gofmt,
as go/format makes no use of objects either.

No benchmark numbers as we already measured the ~5% speed-up with gofmt
in the other CL linked above.

See #46485.

Change-Id: Icbf98e6d46a616081314e2faa13f1dfade3bbaef
Reviewed-on: https://go-review.googlesource.com/c/go/+/401474
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/go/format/format.go