|
Re: Is there parallel operation in Sirius? [message #1784532 is a reply to message #1784524] |
Thu, 29 March 2018 06:55 |
|
Hi,
We do not currently leverage parallelism or multiple threads, beside the basic pattern of moving long running operations outside of the UI thread using the Eclipse Jobs API. While we agree this would be a nice possibility, EMF itself is not really designed for that, see https://wiki.eclipse.org/EMF/FAQ#Is_EMF_thread-safe.3F. In the context of a given Sirius session (which maps to a ResourceSet in terms of EMF), trying to make changes (for example creating representations) from multiple threads is not supported. It's probably possible to manipulate different sessions in parallel, but because this is not a common use case we can not guarantee that this will work. Of cours if you try and find bugs, please report them and we'll try to fix them.
Can I ask why you feel that you need to create "several thousands of diagrams"? Diagrams (as opposed to the underlying semantic models) are only useful for actual human beings. I don't know what your use case is, but I'd recommend to only create the ones that will be used at the time they are first needed.
Regards,
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
[Updated on: Thu, 29 March 2018 06:56] Report message to a moderator
|
|
|
|
Re: Is there parallel operation in Sirius? [message #1784597 is a reply to message #1784532] |
Fri, 30 March 2018 02:19 |
jingjing wang Messages: 28 Registered: July 2017 |
Junior Member |
|
|
Hi, Pierre-Charles
Thank you for your explanation. I got some useful information.
About your question, creating "several thousands of diagram" is not a practical requirement in our use test. We just find the problem in one scenario: choose "initialization" property of the diagram in *.Odesign, select the viewpoint in the project. Then it will create all the diagrams in the project, if the it is a large scale model, it will cost a lot time to create the whole diagrams.
[Updated on: Fri, 30 March 2018 02:21] Report message to a moderator
|
|
|
|
Re: Is there parallel operation in Sirius? [message #1784719 is a reply to message #1784597] |
Tue, 03 April 2018 08:18 |
|
jingjing wang wrote on Fri, 30 March 2018 04:19
We just find the problem in one scenario: choose "initialization" property of the diagram in *.Odesign, select the viewpoint in the project. Then it will create all the diagrams in the project, if the it is a large scale model, it will cost a lot time to create the whole diagrams.
Yes, this is a known issue with that particular property. It was introduced a long time ago, when large scale models where not yet in our use cases. The original goal at the time was to automatically create some kind of initial top-level diagram to help end users get started (a kind of "dashboard"). It was not designed to initialize a large number of diagrams, and it's hard to change the way it works now without breaking things.
May I ask why you want the diagrams to be all created initially? If we understand the need better, maybe we could propose alternate mechanisms that do not have these issues.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03970 seconds