Proper use of libraries [message #871639] |
Mon, 14 May 2012 15:43 |
Eclipse User |
|
|
|
Hello,
I have several transformations with partial functional overlaps. The
shared mappings/queries are in several libraries. Loading and modifying
one of the toplevel scripts is now very slow (the qvt compiler/analyzer
takes a lot of time until the syntax coloring is done). I'm wondering if
I'm using the library facility correctly:
Transformation:
import LibA;
LibA:
import LibB;
import LibC;
LibB:
import a;
import b;
import c;
LibC:
import LibD;
LibD:
import a;
import b;
import c;
liba, libb, libc contain no further imports
Each library contains a number of "modeltype ... uses ..." statements.
Specifically, I'm not sure whether:
- it's ok that essential liba, libb and libc are referenced twice in the
above example. Is that ok? Is there a way around it?
- it's ok that all units are referencing the modeltypes over and over again.
I've tried to understand the spec wrt this, but so far I could not find
what I might do differently.
Any hints?
Thanks
Marius
|
|
|
|
Re: Proper use of libraries [message #873425 is a reply to message #873231] |
Fri, 18 May 2012 07:59 |
Eclipse User |
|
|
|
Hello Ed,
On 17.05.2012 20:56, Ed Willink wrote:
> I suspect you're at the boundary of usage and identifying limitations
> that could be addressed by the specification/tool.
>
> My only suggestion is to remodularize to see if you can eliminate some
> of the sharing that you suspect may be a problem.
I'm now pretty sure that there is some underlying inefficiency in the
library handling that somehow causes the compiler to run through the
included libraries multiple times. So indeed my best option is to
optimize the sharing as much as possible, and to avoid multiple levels
of inclusion where possible.
Thanks for answering anyway!
Marius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds