Bug 60582 - Improve performance of Platform.getLocation()
Summary: Improve performance of Platform.getLocation()
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jeff McAffer CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-04-30 11:46 EDT by John Arthorne CLA
Modified: 2005-09-27 09:12 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2004-04-30 11:46:23 EDT
I20040427

Platform.getLocation() performance should be optimized. This method is used very
heavily in core.resources when manipulating resources in the file system.
Ideally the IPath instance should be cached directly in InternalPlatform (ie.,
zero object creations after first invocation).
Comment 1 Pascal Rapicault CLA 2004-04-30 15:13:06 EDT
I released a fix in HEAD that optimizes the case where there is an instance 
location. When no instance location is available, the query to the service is 
always done.