atlanmod / Mogwai

Automatic translation from OCL to Gremlin
10 stars 6 forks source link

Merge multiple OCL2Gremlin Instances into a global one #15

Closed gdaniel closed 8 years ago

gdaniel commented 8 years ago

If several queries are performed on the same model multiple instances of OCL2Gremlin are created, while this is useless.

Creating a single OCL2Gremlin instance would make more sense, and allow to have transformation caches that avoid multiple translation from the same OCL input (see #16).

gdaniel commented 8 years ago

Done in 754846e, one OCL2Gremlin instance reduces the transformation time (by a factor of 10 for test cases -train benchmark and GraBaTs-).