Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353487 - Performance of ExtendedPlatform.isPlatformPrivateResource
Summary: Performance of ExtendedPlatform.isPlatformPrivateResource
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Robert Kiss CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-01 06:56 EDT by Robert Kiss CLA
Modified: 2021-07-14 02:16 EDT (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (4.27 KB, application/octet-stream)
2011-08-01 09:03 EDT, Robert Kiss CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Kiss CLA 2011-08-01 06:56:21 EDT
For compatibility reason with old Eclipse versions, the ExtendedPlatform.isPlatformPrivateResource method use reflection to call the IResource.isTeamPrivateMember method. However the method is quite slow. For example, on my sample test project (> 1700 model files) the method is responsive for about 12% of the time needed to load the files
However, 85% of that time it stays in ReflectUtil.findMethod.

Because the number of different classes passed to findMethod is rather small, the proposal would be to cache the result of findMethod.
Comment 1 Robert Kiss CLA 2011-08-01 06:56:50 EDT
Implementation on the way...
Comment 2 Robert Kiss CLA 2011-08-01 09:03:40 EDT
Resolved
Comment 3 Robert Kiss CLA 2011-08-01 09:03:42 EDT
Created attachment 200652 [details]
mylyn/context/zip
Comment 4 Balazs Grill CLA 2021-07-14 02:16:55 EDT
Mass-closing Resolved tickets