Closed romeovs closed 8 years ago
Good timing. I was annoyed by goimports' performance recently and started investigating today during the Gophercon hack day. I have a change on my laptop to make things much faster.
It's doing way more work than necessary.
Can't wait for the CL.
CL https://golang.org/cl/24941 mentions this issue.
CL https://golang.org/cl/24948 mentions this issue.
CL https://golang.org/cl/24971 mentions this issue.
CL https://golang.org/cl/25001 mentions this issue.
I think it's fast enough to close this now.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do? I've got a repo with a lot of vendored libraries:
And now
goimports
is really slow:However if I remove the vendored library and get the dependencies into my
$GOPATH
:goimports
is really fast again:$GOPATH
.