This patch speeds up startup for concurrent processes which do not yet
have a constants cache, such as pytest-xdist workers in CI. Each
process now scans local modules in a different order, so that they
mostly share work instead of repeating it (issue #4978).
The canonical version of these notes (with links) is on readthedocs.