Why is go vet slow

206 views
Skip to first unread message

Amnon

unread,
Sep 30, 2024, 3:48:53 PMSep 30
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 AMOct 1
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 AMOct 1
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 PMOct 1
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