Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Deleting pictogram elements is slow
Deleting pictogram elements is slow [message #1065640] Wed, 26 June 2013 20:18 Go to next message
Dwight Naylor is currently offline Dwight Naylor
Messages: 22
Registered: June 2012
Junior Member
Hi there,

I've noticed in my implementation of graphiti that deleting nodes from even smallish diagrams is always a very slow process (minimum of 200ms).

Is this standard behavior? Is it a bug that has a fix down the road?

Thanks in advance for the help.
Re: Deleting pictogram elements is slow [message #1065925 is a reply to message #1065640] Fri, 28 June 2013 10:44 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1590
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Dwight,

hm, the reason for this is hard to tell without a deeper analysis. What I
assume at first glance is that you might have a deeply nested shape
hierarchy with a lot of links set up. In that case the default
implementation of the delete feature may profe inefficient, since it relies
on the EMF reverse reference cleanup to remove links to the deleted
element(s). See DefaultDeleteFeature.deleteBusinessObject; it uses the
recursive variant of EcoreUtil.delete which you might try to change.

Michael
Re: Deleting pictogram elements is slow [message #1065986 is a reply to message #1065925] Fri, 28 June 2013 16:36 Go to previous message
Dwight Naylor is currently offline Dwight Naylor
Messages: 22
Registered: June 2012
Junior Member
Hi Michael,

Thanks for the help.

I've looked at all the native methods and traced them as far as I can go (only using the raw ecore remove, things like that), and I've had no improvement.

If this isn't a known bug of some sort I doubt there's much I can do. Thanks for the help though.
Previous Topic:Send To Front/Back requires a write txn?
Next Topic:synchronize between diagrams
Goto Forum:
  


Current Time: Wed Sep 03 02:21:30 GMT 2014

Powered by FUDForum. Page generated in 0.09040 seconds