-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gogetdoc is extremly slow on code that is using cgo #47
Comments
Thanks for the repro - I will take a look. |
It's probably |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gogetdoc seems to invoke
cgo
, which invokes the native compiler, which can be quite slow. It does this for every invocation, with no caching, even if there were no changes in thecgo
code. This ends up makinggogetdoc
so slow that it is unusable when you have such a package in your dependency graph.Steps to reproduce
You need to have ImageMagick available. (See https://github.com/gographics/imagick)
main.go
in a new go package directory:dep init
.gogetdoc -pos main.go:#87
.Related
microsoft/vscode-go#667 microsoft/vscode-go#1025
cc @ramya-rao-a
The text was updated successfully, but these errors were encountered: