Improvements to performance #967
chrisjsewell
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Improvements:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Just some notes on thinking about how further optimise the code
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is related to #957, but I wanted to have a place to more generally document possible/ongoing performance improvements to sphinx-needs.
Here is the result from the current code (c73c44f)
There are a few things here to note:
print_need_nodesfunction takes up ~25% of the runtime, and a significant time is spent in theInlinerandOptionParserinitialisationprocess_needtablesalso takes up ~10% of the time, with paragraph node intialisation taking noticable timeSphinxSmartOuotestransform takes a significant amount of timeI have proposed fixes to all of these...
Beta Was this translation helpful? Give feedback.
All reactions