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
Build time is increased by 6x after upgrading from >=5.1.1
to 5.2.0+
#12327
Comments
What happens if you disable it? https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-toc_object_entries toc_object_entries = False A |
Just tried disabling it by adding it to my conf.py. Build time now is approx 4min 50sec (lot better then before) However, It's taking a bit more time while reading sources with new versions (not sure after which one). |
I'm wondering if there are any additional configurations we could adjust to further improve the build time. With disabling the
Any insights on potential configuration adjustments or optimizations would be greatly appreciated. |
Been looking into this a bit for sphinx-needs: useblocks/sphinx-needs#967 (comment) One thing is to set: Also looking to eventually improve multi-processing performance: #11746 Happy to hear about more reports like this though! |
Appreciate the pointers, @chrisjsewell I've taken a look at the other issues you mentioned, yet I'm still struggling to pinpoint what's causing such a drastic increase in build time with the latest versions. I've noticed a substantial slowdown with sphinx-build post version 6.0.0, with the build process now taking more than twice as long as it did previously. This slowdown is concerning, as we'd like to leverage the latest features, but the performance hit is making it impractical. Any further insights will be really helpful. |
Describe the bug
When upgrading sphinx-build to the latest version (7.3.7), I noticed a significant increase in build time for generating HTML pages in our project. Upon further investigation, I found that the build time increases noticeably after upgrading to any version 5.2.0+.
Observations:
The build time for the exact same project and same configuration is:
5.1.1
, it is approx 2min 30sec5.2.0
, it is approx 15mins (6 times more)Root Cause:
Upon deeper investigation, I found that the commit f57177d is the cause of the issue.
Specifically, the changes made to the function
build_toc
in filesphinx/environment/collectors/toctree.py
.Cc: @AA-Turner
How to Reproduce
Command:
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: