History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-918
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Ian Springer
Reporter: Ian Springer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

InventoryManager.mergeResource(Resource) can be optimized significantly when passed an unknown Resource tree

Created: 02/Oct/08 07:30 AM   Updated: 13/Oct/08 03:37 PM
Component/s: Plugin Container
Fix Version/s: None

Time Tracking:
Original Estimate: 30 minutes
Original Estimate - 30 minutes
Remaining Estimate: 30 minutes
Remaining Estimate - 30 minutes
Time Spent: Not Specified
Remaining Estimate - 30 minutes

VCS Revision: 1,663


 Description  « Hide
On the recursive calls to mergeResource(), the call to findMatchingChildResource() to find an existing child Resource need not be made at all, since it will always return the same Resource that is being merged (since its parent was just added to inventory). This will also eliminate the need to execute the (existingResource != null) if-block.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.