Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
golang-nuts
Conversations
About
Why is go vet slow
206 views
Skip to first unread message
Amnon
unread,
Sep 30, 2024, 3:48:53 PM
Sep 30
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
go vet ./... has recently become very slow on my company's code-base
taking 20s to complete.
Is there an easy way I can get some feedback over what in my code-base
is making go vet slow?
Marcello H
unread,
Oct 1, 2024, 6:14:02 AM
Oct 1
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Perhaps you can do each check separately, that go vet does to find out if there's a particular check that is slow.
Op maandag 30 september 2024 om 21:48:53 UTC+2 schreef Amnon:
Kevin Chowski
unread,
Oct 1, 2024, 9:07:05 AM
Oct 1
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Have you tried running it under strace or another tool which gives you insights about a running program??
Rob Pike
unread,
Oct 1, 2024, 8:46:17 PM
Oct 1
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kevin Chowski, golang-nuts
Try this
go list ./... | sed 's/.*/echo &; time go vet & /' | sh
-rob
Reply all
Reply to author
Forward
0 new messages