Performance - use DiffCrossReferencer when possible15/148415/1
commitfc496e5005f08df38b949db5d69a9b05045a44d8
authorlgoubet <laurent.goubet@obeo.fr>
Thu, 22 Aug 2019 09:50:39 +0000 (22 11:50 +0200)
committerlgoubet <laurent.goubet@obeo.fr>
Thu, 22 Aug 2019 09:50:39 +0000 (22 11:50 +0200)
tree87e4e2415fe83490714da1d172d3cf67f39a5650
parent65237de86258b5a6d8e0179554955d7ef5bc1b1f
Performance - use DiffCrossReferencer when possible

References with a large amount of elements (5k or more) with a lot of
differences (1k or more) grind the comparison performances to a halt.
When possible, make use of the DiffCrossReferencer to only iterate
over the set of relevant differences instead of the whole set of
differences on the current match.

Change-Id: If80ef7cac5e0e573df78ed902a6b49f2fbcc7211
plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/utils/MatchUtil.java