|
Re: SelectDRepresentationElementsListener performace [message #1847833 is a reply to message #1847825] |
Tue, 09 November 2021 19:08   |
|
Hi Denis,
Are you sure the selection comes from the inactive editor? I have not been able to reproduce it, I only see new elements appear in the inactive editor, but not selected. However, in the current editor, the newly created element by the tool are indeed selected.
If you go back to your creation tool in the .odesign file, there is a field "Elements to Select". Can you set the expression "service:stdEmptyCollection()" so it won't select the new element on your current representation? I hope this should solve your performance issue.
In your case, I think it will still loop a lot of time in org.eclipse.sirius.ui.tools.internal.editor.SelectDRepresentationElementsListener.analyseNotifications(ResourceSetChangeEvent, DRepresentation, List<DRepresentationElement>) just to produce an empty list. If this is still too slow, could you create a bugzilla [1] so we can look into bypassing the whole process if the field "Elements to Select" is valued as "service:stdEmptyCollection()"?
I admit you made me curious. If you don't mind, why do you need to create 10 to 100 thousands of EObject? :)
Best regards,
Steve
[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
[Updated on: Wed, 10 November 2021 18:07] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02017 seconds