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 consumes unreasonable amounts of CPU power #7524
Comments
Comment 1 by bgarcia@golang.org: Labels changed: added repo-tools. Owner changed to bgarcia@golang.org. |
It's not a simple slam dunk. There are couple of things to consider here -
But I agree that rebuilding the index unnecessarily even when nothing has changed, is worse off than this. I will prepare a CL. |
Another alternative--though I'm not saying it's a good one--is to allow a flag to specify how often to index or to disable reindexing entirely. It's unclear what's better here. Whether to add yet another flag or increase the complexity of the code by adding inotify watches. The other issue with watches is that they're platform-dependent. On macOS you have to use the FSEvents API and I have no idea what you have to do on Windows. |
It is already behind a flag called "index", which is false by default. And the index_interval is also behind a flag (default of 15 mins). So yes, you have to knowingly add a flag to enable indexing. Secondly, I plan to use https://github.com/fsnotify/fsnotify which is fully cross-platform including Windows. Check out the repo. But if you are satisfied with the flag solution, then I believe this issue can be closed. |
Then let’s close this. If it comes up again we can revisit.
…On Wed, Jan 24, 2018 at 10:43 AM Agniva De Sarker ***@***.***> wrote:
It is *already* behind a flag called "index", which is false by default.
And the index_interval is also behind a flag (default of 15 mins) So yes,
you have to knowingly add a flag to enable indexing.
Secondly, I plan to use https://github.com/fsnotify/fsnotify which is
fully cross-platform including Windows. Check out the repo.
But if you are satisfied with the flag solution, then I believe this issue
can be closed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7524 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAWSlCAmpj0pDD8NutP62gUCz4IxToqJks5tN0-cgaJpZM4RrA51>
.
|
Great 👍 |
@andybons - I think you forgot to close this 😄 |
The text was updated successfully, but these errors were encountered: