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

x/tools/cmd/godoc: index creation problem #12224

Closed
jfcg opened this issue Aug 20, 2015 · 6 comments

Comments

Projects
None yet
4 participants
@jfcg
Copy link

commented Aug 20, 2015

On my windows 7 64-bit, i got go-1.5 zip for win64 from golang.org/dl and tried (in d:\go):

godoc -write_index -index_files sind

It hangs up in indefinitely..

@jfcg

This comment has been minimized.

Copy link
Author

commented Aug 20, 2015

Little cpu usage but memory usage exceeds 3 gb & increasing O_o

@jfcg

This comment has been minimized.

Copy link
Author

commented Aug 20, 2015

I saw %50 cpu usage & 7 gb of ram !

@adg adg changed the title 1.5 godoc on Win64 index creation problem x/tools/cmd/godoc: index creation problem Aug 20, 2015

@adg

This comment has been minimized.

Copy link
Contributor

commented Aug 20, 2015

Maybe you have a massive workspace? Try unsetting GOPATH and trying again.

Is the behavior actually different to the godoc that shipped with 1.4.2?

@jfcg

This comment has been minimized.

Copy link
Author

commented Aug 20, 2015

Unsetting gopath worked, finished in a minute.

1.4.2 used to be able to do indexing -including gopath- definitely faster with reasonable resources. There must be a regresdion.

My gopath is not particularly crowded, 25- packages, largest is possibly mgo. Gopath/src is ~30 mb

@adg

This comment has been minimized.

Copy link
Contributor

commented Aug 20, 2015

@jfcg are you sure? what does go list all say?

@jfcg

This comment has been minimized.

Copy link
Author

commented Aug 20, 2015

I think i discovered why :)
i had a 550 mb text file left from one of my experiments in the src tree.
That's the reason crazy index times, sorry..

@jfcg jfcg closed this Aug 20, 2015

@mikioh mikioh added this to the Unreleased milestone Aug 21, 2015

@golang golang locked and limited conversation to collaborators Aug 22, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.