eclipse-qvtd / org.eclipse.qvtd

Eclipse Public License 2.0
0 stars 0 forks source link

model-cache optimizations #122

Open eclipse-qvtd-bot opened 2 weeks ago

eclipse-qvtd-bot commented 2 weeks ago

| --- | --- | | Bugzilla Link | 473380 | | Status | NEW | | Importance | P3 normal | | Reported | Jul 23, 2015 06:25 EDT | | Modified | Sep 18, 2015 09:37 EDT | | Reporter | Ed Willink |

Description

There is currently one cache per interesting type, and entries can go into multiple caches.

Improvement 1: use List rather than Set; no way containment traversal can reach the same object twice.

Improvement 2: cache only in the leaf cache, and return values based on a list (of all possible derived caches) of iterators (for each element per cache).

eclipse-qvtd-bot commented 2 weeks ago

By Ed Willink on Sep 18, 2015 09:37

When this is revisited it could usefully be re-used from QVTiModelManager.QVTiTypedModelInstance.getElementsOfType().