Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 382272 - Model element deletion is very slow in some cases, because the CrossReferenceAdapter is not initialized
Summary: Model element deletion is very slow in some cases, because the CrossReference...
Status: CLOSED FIXED
Alias: None
Product: EMFStore
Classification: Modeling
Component: Clientcore (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-11 11:58 EDT by Dmitry Litvinov CLA
Modified: 2012-06-12 08:52 EDT (History)
2 users (show)

See Also:


Attachments
Patch, fixing the problem (1.78 KB, patch)
2012-06-11 11:59 EDT, Dmitry Litvinov CLA
emueller: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Litvinov CLA 2012-06-11 11:58:54 EDT
Build Identifier: 

If a project is created during one of previous work sessions with the client, deletion of model elements is performed very long because the crossReferenceAdapter in ProjectSpaceBase is not initialized.
The proposed patch moves the initialization of the crossReferenceAdapter from function initResources() to init() and enables its initialization by default.

Reproducible: Always

Steps to Reproduce:
1. Import a project (>=50000 elements) from a file
2. Close the client and open it again
3. Delete a model element, which has children
Deletion is perform very long, > 30 sec
Comment 1 Dmitry Litvinov CLA 2012-06-11 11:59:36 EDT
Created attachment 217168 [details]
Patch, fixing the problem
Comment 2 Edgar Mueller CLA 2012-06-12 08:48:58 EDT
Patch has been applied with a small change: instead of OR'ing the boolean values of the extension points found, they are AND'ed, since otherwise the crossReferenceCache would be used in any case.