Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Opening sirius session(Opening a sirius session for the very first time in Workspace takes long time)
Opening sirius session [message #1808424] Mon, 24 June 2019 11:11 Go to next message
Kannammai Ramaiah is currently offline Kannammai RamaiahFriend
Messages: 3
Registered: June 2019
Junior Member
While opening a sirius session for the very first time in Workspace, editor is getting opened nearly after 10 secs. While opening the sirius session there is a call to initialize Model Accessor, here all the ecore models(created for custom use as well as the ecore model in dependent plugins) are being loaded and assigned to a static reference.

The line below is how that static object is intialized in org.eclipse.sirius.ecore.extender.business.internal.accessor.ecore.EcoreIntrinsicExtender class

private static PackageRegistryIndex platformIndex = new PackageRegistryIndex(EPackage.Registry.INSTANCE, Predicates.<EPackage> alwaysTrue());


It seems due to this opening of session gets time for the very first time. Is this can be prevented or any work around to reduce the time consumption
Re: Opening sirius session [message #1808461 is a reply to message #1808424] Tue, 25 June 2019 06:38 Go to previous messageGo to next message
Kannammai Ramaiah is currently offline Kannammai RamaiahFriend
Messages: 3
Registered: June 2019
Junior Member
To prevent this ecore package indexing used the system property org.eclipse.sirius.enableUnsafeOptimisations and set it to true like
-Dorg.eclipse.sirius.enableUnsafeOptimisations=true


With this it seems no issues found with our use case, we want to ensure this. So any points on this system property usage is welcome. Thanks in advance
Re: Opening sirius session [message #1808481 is a reply to message #1808461] Tue, 25 June 2019 13:44 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

Indeed, this option prevent some indexing and notification. If your VSM is deployed in a .odesign file, and you don't register new metamodels on the fly, you should be able to use this optimization without trouble.

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Cannot install experimental features of Sirius 6.2.0 in Photon
Next Topic:Creating visual models other than component-connector style
Goto Forum:
  


Current Time: Thu Apr 25 02:11:09 GMT 2024

Powered by FUDForum. Page generated in 0.06515 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top