Pull requests

#108 Merged
birkenfeld/sphinx-parallel sphinx-parallel
birkenfeld/sphinx sphinx

[WIP] parallel build experimentation

  1. Georg Brandl avatarGeorg Brandl

This pull request is for review of my work on parallel build (i.e. writing; reading is much harder). Do not pull into main repo yet.

HOW TO TEST: use sphinx-build -j N, where N is the number of parallel processes.

Timing results from writing HTML for the whole Python 3.3 documentation (write only, no reading) on a machine with 2x2 cores:

  • -j1 -- 94 secs (this is using the old code)
  • -j2 -- 68 secs
  • -j4 -- 60 secs

I.e. on this machine we can achieve 30% time reduction using 4 cores. (Why not more: in the end there's a lot of IO involved reading the doctree and writing the HTML to disk. Also, with the latest changeset not everything is actually done in the subprocesses.) This will help for even bigger projects, I hope, even if the reading stage currently is more time intensive (especially due to autodoc).

Comments (0)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.