|
Re: How to accelerate opening editors using DialectUIManager? [message #1829038 is a reply to message #1829031] |
Wed, 24 June 2020 08:46 |
|
Hi,
This is the normal entry point to open a representation. If it is slow in your context, the cause is not this method in particular. It really depends on what you consider "too slow", what is the size of your model, of your diagrams, the complexity of you odesign, etc.
You can try to disable the "Do refresh on representation opening" preference (in the main "Sirius" preference page). This will open your representations as fast as Sirius can, but with the risk that what you seen on screen in not in synch with the current state of your model.
Regards,
Pierre-Charles
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: How to accelerate opening editors using DialectUIManager? [message #1829058 is a reply to message #1829051] |
Wed, 24 June 2020 12:44 |
|
Yufei Zhou wrote on Wed, 24 June 2020 12:52It normally uses 2-3 second to open an editor every time I start my application, it's quite slow compared to other methods. Thanks for your advice and I'll try to optimize my model and representation design.
If the slowness is only the first few times you open a diagram right after application startup, it could be caused by lazy loading/initialization of Eclipse plug-ins, and/or JVM warmup.
You mention "compared to other methods": which other methods give faster results?
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: How to accelerate opening editors using DialectUIManager? [message #1829216 is a reply to message #1829215] |
Sun, 28 June 2020 12:32 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
If you are really sure that you want all users to take the start up hit of early starting Sirius, just reference a class from each interesting Sirius plugin and invoke as InterestingSiriusClass.class.getName() or similar from your own early startup code.
If you have other users you might find that just starting a worker thread early which early starts one Sirius plugin per second in the background might be a compromise.
Regards
Ed Willink
[Updated on: Sun, 28 June 2020 19:33] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02747 seconds