Skip to content
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

Extremely slow startup of debug for specific project #970

Closed
delaneyj opened this issue Sep 22, 2017 · 4 comments
Closed

Extremely slow startup of debug for specific project #970

delaneyj opened this issue Sep 22, 2017 · 4 comments

Comments

@delaneyj
Copy link

  1. What version of Delve are you using (dlv version)?
    Version 1.0.0-rc1
    Build: b6077a6

  2. What version of Go are you using? (go version)?
    1.9 windows/amd64

  3. What operating system and processor architecture are you using?
    Windows10 Pro 64bit

  4. What did you do?

go get -u github.com/goxjs/example/tree/master/triangle
cd $GOPATH/github.com/goxjs/example/tree/master/triangle
go run main.go #Less than 2 seconds 
dlv debug main.go #Between 60-90s
  1. What did you expect to see?
    Generally similar startup times, or some details of what could be causing the slow down.

  2. What did you see instead?
    30-40x slow down in startup.

@aarzilli
Copy link
Member

It's recompiling all dependencies with optimizations disabled which unfortunately can not be cached: golang/go#19340

@ITSecMedia
Copy link

This issue is currently an extreme pain.

@Kliton
Copy link

Kliton commented Oct 25, 2017

Any update?

@jkryanchou
Copy link

I would try gdb to replace delve by using go install -v <package> to compile with cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants