Bug 209713 - Performance enhancements to AbstractEditHelper for large delete scenario
Summary: Performance enhancements to AbstractEditHelper for large delete scenario
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 2.0.2   Edit
Assignee: Alex Boyko CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-11-13 16:43 EST by Christian Vogt CLA
Modified: 2010-07-19 12:24 EDT (History)
1 user (show)

See Also:


Attachments
patch for AbstractEditHelper (2.85 KB, patch)
2007-11-13 16:43 EST, Christian Vogt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Vogt CLA 2007-11-13 16:43:42 EST
Created attachment 82809 [details]
patch for AbstractEditHelper

I have attached a patch which reduces the peak memory consumption in large delete scenarios. This is done by reordering the command creation such that the parent delete command is created after the child delete commands.

As well, I have skipped the check to canExecute (see patch) because under normal circumstances canExecute will return true, and this check ends up causing slow downs in large scenarios. By skipping this check, the delete scenario will increase in speed, but delaying this check in a failing scenario will cause the fail to propagate slower. Its a trade off, but the happy path scenario is improved.

One more performance fix is related to Bug 209709. Prior to returning the edit command produced by the edit helper, the command should be reduced to minimize the amount of nested commands.
Comment 1 Anthony Hunter CLA 2007-11-16 10:42:29 EST
Hi Alex, can you review and commit to R2_0_maintenance if acceptable?
Comment 2 Alex Boyko CLA 2007-11-16 14:50:09 EST
Sure, not a problem. I'm goiing to review the patch early next week. However, if this needs to be done ASAP, please speak up.
Comment 3 Alex Boyko CLA 2007-11-21 16:26:32 EST
Committed the patch to HEAD and R2_0_maintenance
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:24:16 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime EMF was the original product and component for this bug