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
'updating environment' intensively computed and pausing for a long time #7840
Labels
Milestone
Comments
ghost
added
the
type:bug
label
Jun 15, 2020
Sorry for late. Does this patch help your case? If so, I'll apply this into Sphinx in next release.
|
Thank you for confirming! Let's apply this patch :-) |
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jul 19, 2020
…trap Replace a nested-loop comparision by hash-search to improve the performance of dependencies check on bootstrap.
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Jul 19, 2020
…trap Replace a nested-loop comparison by hash-search to improve the performance of dependencies check on bootstrap.
tk0miya
added a commit
that referenced
this issue
Jul 19, 2020
Close #7840: i18n: Optimize the dependencies check on bootstrap
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
running command:
and always encountered the 'updating environment' and computer pausing for a longtime.
To Reproduce
Go here:
https://docs.blender.org/manual/en/2.83/about/index.html
and follows the 'Install', 'Build' instructions for the OS you have.
Then go here:
https://docs.blender.org/manual/en/2.83/about/contribute/translations/contribute.html
to read how to download a foreign language set of your choice. You can see the list of languages available at the moment at this link:
https://svn.blender.org/svnroot/bf-manual-translations/trunk/blender_docs/locale/
Configure the file
and choose the language matches the set you've downloaded, then in the 'blender_docs' directory, run the command:
now jump into the
and edit any files.
then run:
you should see the message 'updating environment' and the pausing could take up to one to two minutes, which is VERY UNUSUAL
Expected behavior
With a very small amount of changes, the code should run very quick, a couple seconds max.
Your project
https://docs.blender.org/manual/en/latest/
Screenshots
N/A
Environment info
Additional context
Debugging the code and found the problem occurs in the
at the routine:
in the class:
The code was trying to find an EXACT MATCH for doc name in self.found_docs and the catalog.domain, and thus looping recursively through a LARGE LIST of files.
I have found a fix for this problem, by splitting the loop to find all doc name in self.found_docs to a separate loop, digest the value of domain then store this to a dictionary
then later in the catalog search loop, perform the same digest function on catalog.domain, and using the 'in' comparing function to get the EXACT MATCH. This has speeding up the code enormously.
this is the entire block of code I use:
Sorry, I do not have a facility to produce 'diff' file.
The text was updated successfully, but these errors were encountered: