Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316024

Summary: Performance issue in FlatVirtualComponent for binary references
Product: [WebTools] WTP Common Tools Reporter: Jason Peterson <jasonpet>
Component: wst.commonAssignee: Jason Peterson <jasonpet>
Status: RESOLVED FIXED QA Contact: Carl Anderson <ccc>
Severity: normal    
Priority: P3 CC: cbridgha, jsholl, stryker
Version: 3.2Flags: cbridgha: review+
ccc: review+
Target Milestone: 3.2.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch ccc: iplog+

Description Jason Peterson CLA 2010-06-07 12:31:00 EDT
Some profiling was done during publishing and it was discovered that a lot of time was being spent when determining whether a binary reference was a child module.  The reason is due to some duplicate checking going on.  On the first check, the referenced component is used to retrieve the cache when doing the quick peek.  However, then it is checked again, but this time calls quick peek using the path.  This is not cached and takes a while to check.  

The fix is to eliminate the unnecessary check.
Comment 1 Jason Peterson CLA 2010-06-07 12:41:00 EDT
Created attachment 171299 [details]
patch
Comment 2 Chuck Bridgham CLA 2010-06-14 10:35:05 EDT
approve
Comment 3 Carl Anderson CLA 2010-06-17 09:42:36 EDT
I approve.
Comment 4 Carl Anderson CLA 2010-06-17 09:46:19 EDT
Committed to HEAD for WTP 3.2.1 and WTP 3.3