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

sphinx-autobuild has become very slow #136

Closed
asmeurer opened this issue Aug 2, 2023 · 2 comments
Closed

sphinx-autobuild has become very slow #136

asmeurer opened this issue Aug 2, 2023 · 2 comments
Labels

Comments

@asmeurer
Copy link

asmeurer commented Aug 2, 2023

Describe the bug

At some point recently, sphinx-autobuild has become really slow. I'm not really sure what has caused it. It might have something to do with a newer version of Sphinx. But when using it for the SymPy documentation, it takes something like 10 seconds to reload the page even after a trivial build. Sometimes it reloads the page into a completely blank page and I have to wait for the build to finish before it loads the real page again.

This is especially an issue given #125 and also the problem I described at #123. You cannot click on any links or anything while the build is happening. It just "hangs" effectively.

Reproduce the bug

Easiest way is to use it on the SymPy documentation. You can install the sympy documentation dependencies with the doc/requirements.txt file, and use

cd doc
make livehtml

to build the docs with live reloading. Note that the initial build is slow because there is a lot of documentation, but that's not the issue here. Try making a small change to some file after the page opens in your browser and seeing how long it takes to reload everything.

List your environment

sphinx-autobuild 2021.3.14
sphinx 6.2.1

@asmeurer asmeurer added the bug label Aug 2, 2023
@guideloom
Copy link

perhaps you are passing "-a" to sphinx-autobuild/sphinx-build some how?
-a = build ALL, not just the changes.

@asmeurer
Copy link
Author

I just tested that and it seems to make Sphinx rebuild everything with every change. I am most definitely not doing that. Believe me, I would know if it was doing that. The SymPy docs take a couple of minutes to do a full rebuild. Things are slow, but they aren't that slow.

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

No branches or pull requests

3 participants