|[EMF Forms] Performance Issues with Master-Detail controls (Tree and Table) [message #1772127]
||Tue, 05 September 2017 20:20
| Andreas Fogados
Registered: July 2017
I have a question concering performance issues with controls using master-detail functionality, meaning Tree-Master-Detail and TableControl with detail editing. I have very large models, meaning up to 15,000 elements within a container element.
I recognized a performance issues starting from about 2,000 elements with TableControl with detail editing and at about 1,000 elements with TMD.
The rendering of TableControl with 5,000 elements for example takes nearly 2 minutes, while the rendering of TMD with 5,000 elements takes nearly 30 minutes.
I analyzed the source-code and it seems that most the time is lost while creating the ViewModelContexts, especially because they are created for each child-element in advance. The troubling part seems to lie within the org.eclipse.emf.ecp.view.internal.context.ViewModelContextImpl$DomainModelContentAdapter.addAdapter() method, which consumes nearly 70% of active CPU-time when rendering the View.
So my question is, if it is somehow possible to force some kind of lazy-loading of ViewModelContexts for child-elements, e.g. load them when the respective master-element is clicked; or only load child-contexts for the first lets say 500 master-elements and others on the fly or in the background. My guess is, that the child-contexts are loaded in advance to perform validation checks. If so, can that be somehow influenced?
Is there anything planned in the future to increase performance in that cases or can I somehow make adaptions to that?
Because the way it is now, it seems that i cannot use the framework, at least not when Master-Detail editing is required.
Best regards and many thanks in advance,
[Updated on: Tue, 05 September 2017 21:41]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01929 seconds