How to accelerate opening editors using DialectUIManager? [message #1829031] |
Wed, 24 June 2020 04:10  |
Eclipse User |
|
|
|
Hi,
I am working on building an Eclipse RCP application with Sirius. Currently I ran into a performance problem: I need to open diagrams, tables, ... and other Sirius representations. I searched in the forum and found that I can use DialectUIManager to do that work.
The code snippet is:
DialectUIManager.INSTANCE.openEditor(mySession, myDiagram,
myProgressMonitor);
The problem is that, I found that using this code snippet to open representation editors is extremely slow. I used JProfiler to analyze the application, and the openEditor method is just taking a lot of time. That's sort of annoying and brings a bad experience to my application.
So I wonder if there is any way to improve the performance of the DialectUIManager.openEditor method? Or is there any alternatives? Or why this method takes so much time?
Thanks so much for any help.
|
|
|
|
|
|
|
|
Re: How to accelerate opening editors using DialectUIManager? [message #1829216 is a reply to message #1829215] |
Sun, 28 June 2020 08:32  |
Eclipse User |
|
|
|
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 15:33] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 1.46206 seconds