Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 221361 - Minimize work on startup
Summary: Minimize work on startup
Status: RESOLVED DUPLICATE of bug 230340
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2008-03-04 12:23 EST by John Arthorne CLA
Modified: 2008-05-13 15:40 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2008-03-04 12:23:54 EST
Running with a p2-enabled SDK, I'm seeing these messages in my console during startup:

Time Fetching Metadata Site http://download.eclipse.org/tools/mylyn/update/e3.4/site.xml was: 3375 ms
Time Fetching Metadata Site http://capilano.ottawa.ibm.com/ganymede/site.xml was: 1328 ms

It looks like we're eagerly hitting servers on startup, which we must avoid unless absolutely necessary. In my case I have no dropins folder at all, so I don't see why we should need to do anything during startup. Even if there is a dropins folder, I would only expect to be hitting repositories if the dropins folder contents have changed and install/uninstall operations are needed.
Comment 1 Pascal Rapicault CLA 2008-03-04 13:39:55 EST
John would it be possible that the update checker would trigger this?
Comment 2 Susan McCourt CLA 2008-03-04 16:08:19 EST
If the auto-update preference is set for startup, this would definitely happen.
Comment 3 John Arthorne CLA 2008-03-04 16:40:26 EST
Ok, I suggest for auto-update checking we schedule this to run after some delay on startup to avoid slowing down other initialization work. As an end user this is not a critical thing that needs to happen right away.  Something like a 30-60s delay would do it. I'll do some more careful profiling once we have a working p2ized SDK to see what else is going on during startup.
Comment 4 Susan McCourt CLA 2008-03-05 11:41:30 EST
If the user has selected "check on startup" this happens...otherwise on startup a delay is computed so that it meets the specified schedule.  Note the timing is the same as UM did it.  I'll await your profiling before making any changes/introducing a delay.
Comment 5 Pascal Rapicault CLA 2008-04-27 20:44:50 EDT
Has any investigation done on this?
Comment 6 John Arthorne CLA 2008-04-27 23:50:18 EDT
No further investigation has been done. I'll assign it to myself so I don't lose track of it.
Comment 7 Susan McCourt CLA 2008-04-28 11:28:32 EDT
see also bug #227582
Comment 8 John Arthorne CLA 2008-05-06 17:11:11 EDT
There are no concrete problems at the moment so clearing milestone. Some profiling would be useful time permitting.
Comment 9 Pascal Rapicault CLA 2008-05-13 15:40:34 EDT

*** This bug has been marked as a duplicate of bug 230340 ***