-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Drop -E
from Sphinx call
#10701
Comments
Thanks for reporting this. We should probably remove both since there is no shared state between each build anymore. |
@mgeier Hrm... Thinking a little more about this. Since we are building the HTML and then the PDF, aren't these toctrees shared between those commands? |
I thought that was the intention a few years ago, and this is normally achieved by making sure to specify the same doctree directory with However, this is all obliterated by the So even though the doctree directory is technically shared and re-used, because of the |
Thanks for the clarification here. @stsewd @ericholscher what do you think it's the correct movement here?
Since the root directory is always clean, I think it makes sense to only remove |
+1 on removing the -E option |
Yea, I think we don't need it anymore since we aren't reusing build directories across builds. |
Remove the `-E` from Sphinx command so it can shares the saved environment between commands from the same build. This will speed up a little those builds that are building multiple formats. Closes #10701
Remove the `-E` from Sphinx command so it can shares the saved environment between commands from the same build. This will speed up a little those builds that are building multiple formats. Closes #10701
A few years ago (see #6966), there was some effort to speed up subsequent builds with different builders by sharing the "doctree" directory.
A remnant of this is still visible since the Sphinx arguments contain
-d _build/doctrees
.However, I recently noticed that the Sphinx command now also contain the
-E
flag, which destroys most of the savings expected from sharing doctrees.If the
-E
flag is intentionally used for some reason, the-d
argument should probably be removed to avoid confusion.Details
Expected Result
Different builders re-use the doctrees, sources are only read for the first build, all subsequent builds are very quick.
Actual Result
Each build reads all source files, not re-using previous doctrees.
The text was updated successfully, but these errors were encountered: