Improve performance of forward navigation via xsl:call-template
Posted: Wed Feb 05, 2020 1:12 pm
Dear Oxygen team,
I have a git project which includes the DocBook distribution as a submodule. Even though the actual project only has a small number of stylesheets, the DocBook submodule brings in a large number (298) of stylesheets.
Now when hovering over the name value of any xsl:call-template instruction in my own set of stylesheets and then pressing Ctrl+Left Mousebutton to forward navigate to the named template being called, the experience is quite frustrating:
a dialog pops up whose title is "Searching declarations", with a progress bar including the text "Calculating resource dependencies". Due to the large number of DocBook stylesheets, this takes quite long - roughly ten seconds. Even though the dialog has a "Cancel" button, pressing it doesn't stop the already running "Calculating resource dependencies" background task. You'll have to wait until it's finished, no matter what. Third, this behavior occurs not only on the first attempt to forward navigate to any given named template, but each time, even when not a single file has changed in the meantime.
Would you please consider improving the performance of this foward navigation function, possibly by avoiding recalculating resource dependencies when it's not necessary?
Kind regards, Lambert
I have a git project which includes the DocBook distribution as a submodule. Even though the actual project only has a small number of stylesheets, the DocBook submodule brings in a large number (298) of stylesheets.
Now when hovering over the name value of any xsl:call-template instruction in my own set of stylesheets and then pressing Ctrl+Left Mousebutton to forward navigate to the named template being called, the experience is quite frustrating:
a dialog pops up whose title is "Searching declarations", with a progress bar including the text "Calculating resource dependencies". Due to the large number of DocBook stylesheets, this takes quite long - roughly ten seconds. Even though the dialog has a "Cancel" button, pressing it doesn't stop the already running "Calculating resource dependencies" background task. You'll have to wait until it's finished, no matter what. Third, this behavior occurs not only on the first attempt to forward navigate to any given named template, but each time, even when not a single file has changed in the meantime.
Would you please consider improving the performance of this foward navigation function, possibly by avoiding recalculating resource dependencies when it's not necessary?
Kind regards, Lambert