|Re: Clean build in xtext [message #1219292 is a reply to message #1219218]
||Tue, 03 December 2013 08:11
| Hallvard Traetteberg
Registered: July 2009
Location: Trondheim, Norway
Perhaps one possibility is creating a new file type, which represents
the global view and only let the generator for this file update
output.c. For this file type there will typically only be one file. This
file should have an explicit reference to some object in each of the
other files, so Xtext knows of the dependency and can trigger a
On 02.12.13 17:42, Arshad Adavani wrote:
> Hi Christian,
> I actually went deeper to get the root cause. Now I know why it is
> taking so long for the clean build. I will explain you.
> Now, say that I have a grammar with ".txt" as dsl file extension.
> These DSLs refer to each other. So in my code generator I need all DSL
> data for correct output. In my case I have some 50-60 DSLs.
> What I am doing in the generator:
> If I save one of the editors from these 50-60 DSLs, in my generator I
> load all the other referenced files to get right data. So If I save one
> file, all referenced files will be loaded and say that this output goes
> to one of the files known as output.c (this is generated from my
> generator). This will not cause me any performance issue.
> BUT,WHEN I DO A CLEAN BUILD, for each dsl this generator will be called
> and other all DSLs will be loaded each time resulting overwriting the
> same output.c again and again.
> So you can just guess, when I do a clean build for one file generator
> will bee called and all references will be loaded and it does the
> repetitive work almost another 50 times causing performance problems.
> Can you guide me in this regard.
> Thanks for your help :)
Powered by FUDForum
. Page generated in 0.02307 seconds