Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Re: [QVTO] Large script - editor slow
Re: [QVTO] Large script - editor slow [message #869744] Fri, 04 May 2012 07:19 Go to next message
Eclipse UserFriend
On 03.05.2012 18:15, Marius Gröger wrote:
> I have a large transformation script and the qvto editor becomes
> extremely slow. (I'm not sure yet if this is also a problem of using
> custom types which the editor doesn't know). Anyway I can edit fragments

Turns out this was indeed the problem. In my workspace I have the
referenced Ecore models, but the qvt editor doesn't know about them
(rather, the models aren't registered in the global EMF registry). So I
had written a small helper plugin which loads a list of .ecore models
into the global EMF registry on startup. However, when such a model
references custom types, the qvto chokes badly on each reference trying
to resolve that custom type. I'm now only loading the XSD models with
that helper, and deploy the generated ecore models as plugins into my
dropins/ folder. Now the model is complete and the qvt editor is happy
(and so am I.)

Regards
Marius
Re: [QVTO] Large script - editor slow [message #869818 is a reply to message #869744] Fri, 04 May 2012 12:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I suspect that you have side stepped the problem. EMF works quite well
with dynamic models; a bit slower but not dramatically so. Perhaps your
problem was that you were repeatedly loading the model again and again.
Using a single Java model may just have avoided the repetition.

Regards

Ed Willink


On 04/05/2012 08:19, Marius Gröger wrote:
> On 03.05.2012 18:15, Marius Gröger wrote:
>> I have a large transformation script and the qvto editor becomes
>> extremely slow. (I'm not sure yet if this is also a problem of using
>> custom types which the editor doesn't know). Anyway I can edit fragments
> Turns out this was indeed the problem. In my workspace I have the
> referenced Ecore models, but the qvt editor doesn't know about them
> (rather, the models aren't registered in the global EMF registry). So I
> had written a small helper plugin which loads a list of .ecore models
> into the global EMF registry on startup. However, when such a model
> references custom types, the qvto chokes badly on each reference trying
> to resolve that custom type. I'm now only loading the XSD models with
> that helper, and deploy the generated ecore models as plugins into my
> dropins/ folder. Now the model is complete and the qvt editor is happy
> (and so am I.)
>
> Regards
> Marius
>
Re: [QVTO] Large script - editor slow [message #869843 is a reply to message #869818] Fri, 04 May 2012 13:35 Go to previous message
Eclipse UserFriend
On 04.05.2012 14:02, Ed Willink wrote:
> I suspect that you have side stepped the problem. EMF works quite well
> with dynamic models; a bit slower but not dramatically so. Perhaps your
> problem was that you were repeatedly loading the model again and again.
> Using a single Java model may just have avoided the repetition.

Perhaps... anyway my (hopefully final) approach to this is to simply
start my Ecore model in a runtime workbench, add my XSD model there also
using my special startup-loader plugin and edit the QVT there in a
project that's linked to my original workspace. That way I don't need to
re-deploy and restart Eclipse, I merely need to restart the runtime
workbench which is much more lightweight.

Everything works great now, and I really love QVT. Hopefully development
will continue (I'm afraid I won't be able to give much back... well,
perhaps a bug report here and there).

Regards
Marius
Previous Topic:Welcome to the new QVTo newsgroup (formerly M2M)
Next Topic:[QVTo tutorial] How can I debug (step into) script ?
Goto Forum:
  


Current Time: Fri Apr 19 05:34:01 GMT 2024

Powered by FUDForum. Page generated in 0.01730 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top