Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to improve RCP applications startup time?
How to improve RCP applications startup time? [message #1750367] Tue, 20 December 2016 12:43 Go to next message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
Migrating our RCP application from eclipse 3.7 to e4 resulted in significant startup time degradation.
It went from 3 seconds on eclipse 3.7 up to 17 seconds on latest 4.6.1 target platform.

Two visible bottle necks are the activation of org.eclipse.e4.ui.css.swt.theme and org.eclipse.help bundles.

I was wandering if there is anything we can do to improve this?
I don't use any themes and don't need any support for help system.
Unfortunately it's not possible to remove them from dependencies.
But is there any way to at least lazy load, postpone, fake, ignore, etc.. their activation?

Re: How to improve RCP applications startup time? [message #1750381 is a reply to message #1750367] Tue, 20 December 2016 14:36 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
You can disable theming via Preferences -> General -> Appearance

Eclipse doesn't look that shiny then, but honestly I know of several people that prefer the non themed Eclipse over the styled one because of performance improvements.
Re: How to improve RCP applications startup time? [message #1750399 is a reply to message #1750381] Tue, 20 December 2016 17:11 Go to previous messageGo to next message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
Thank you, Dirk
Do you know how can I do this programmatically?
I don't want to expose this to end users.
I want to put some configuration parameter somewhere so that it boots up without any theming..
Re: How to improve RCP applications startup time? [message #1750409 is a reply to message #1750399] Tue, 20 December 2016 19:35 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
Quote:
Add "-cssTheme none" runtime option to the Eclipse command line


http://www.jroller.com/andyl/entry/boost_eclipse_performance
Re: How to improve RCP applications startup time? [message #1750413 is a reply to message #1750409] Tue, 20 December 2016 20:37 Go to previous messageGo to next message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
"-cssTheme none" didn't have any affect as far as I can tell.

I have enabled tracing for bundle loading times.
During the startup my app hangs for about 10 seconds doing this two unnecessary things:

Finding activator for org.eclipse.e4.ui.css.swt.theme_0.10.100.v20160523-0836 [832]
Finding activator for org.eclipse.help_3.7.0.v20160602-1307 [915]


I wonder what is it trying to do for so long..
Re: How to improve RCP applications startup time? [message #1750422 is a reply to message #1750413] Tue, 20 December 2016 21:44 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
If you don't use these bundles, why do you add them to your product? Probably because you use the default Eclipse RCP feature?
Re: How to improve RCP applications startup time? [message #1750492 is a reply to message #1750422] Wed, 21 December 2016 16:37 Go to previous messageGo to next message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
I wish I could remove them.., migration from 3.7 to 4.x almost doubled the size of the product with completely irrelevant things.
Help and CSS bundles are deep dependencies, for example org.eclipse.ui depends on Help bundle and I can't remove it.
What do you mean by "default Eclipse RCP feature" ?
I use among others
org.eclipse.rcp 
org.eclipse.e4.rcp


(and by the way the Eclipse itself with disabled theming tries to activate org.eclipse.e4.ui.css.swt.theme and spends on this couple of seconds, I see it on the splash screen progress)
Re: How to improve RCP applications startup time? [message #1750495 is a reply to message #1750492] Wed, 21 December 2016 17:41 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
Did you try neon 2? IIRC there was some proxy network issue
Re: How to improve RCP applications startup time? [message #1750497 is a reply to message #1750495] Wed, 21 December 2016 18:26 Go to previous message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
I don't think 4.6.2 update works, was it released?
This is what I get trying to go from 4.6.1 forward:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Eclipse for RCP and RAP Developers 4.6.2.20161208-0625 (epp.package.rcp 4.6.2.20161208-0625)
  Missing requirement: Eclipse for RCP and RAP Developers 4.6.2.20161208-0625 (epp.package.rcp 4.6.2.20161208-0625) requires 'org.eclipse.jdt.feature.group [3.12.2.v20161124-1400]' but it could not be found
Previous Topic:How to use dialog in e4 application model
Next Topic:Inserting an object into the application context
Goto Forum:
  


Current Time: Wed Sep 19 04:51:25 GMT 2018

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

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

Back to the top