Slow screen loading and high CPU usage in case of many components #3053
Labels
state: fixed
Fixed by the developer
type: performance
ver: 7.2.9
Fixed in version
ver: 7.3.0
Fixed in version
Milestone
Environment
Description of the bug or enhancement
Our project has editor screens with many components: labels, text fields etc. Currently we have big performance problems with opening such screens.
Root of the problem is autowiring web components to the spring context, introduced in the ticket #1351
For example in our case method WebUiComponents#create() is executed approx. 300 times (which leads to the autowiring 300 beans - WebUiComponents#autowireContext) during the screen components loading, increasing time by 714 ms according to the perfstat logs and visualVm:
Also to prove that this is a huge problem for us, i've attached a .nps snapshot (autowireProblem.zip captured using jvisualvm) from the test environment during performance test execution (opening main window and editor multiple times with several threads were performed).
In this snapshot you can see that the 6 sec from the 12 (snapshot time) cpu is spend executing create() method
The text was updated successfully, but these errors were encountered: