|
|
Re: Build times and feedback when generating code [message #704865 is a reply to message #704316] |
Fri, 29 July 2011 06:04 |
Dirk Hoffmann Messages: 163 Registered: July 2009 |
Senior Member |
|
|
Hi Ed,
thanks for your hints.
I opened the progress view, wasn't aware of it before, and it said
"Building Workspace" and "Flushing content description cache".
Over time I installed more and more features into my Helios
installation, Xtext or Workflow Engine not being amongst them. Maybe
some of the others are causing the wasteful builds. I should set up a
new installation and use this opportunity to move to Indigo.
Regards,
Dirk
Am 28.07.2011 15:38, schrieb Ed Merks:
> Dirk,
>
> Comments below.
>
> On 28/07/2011 1:38 AM, Dirk Hoffmann wrote:
>> Hi,
>>
>> when generating code from the root of the genmodel connected to a
>> rather huge model I found that the generation of the code goes quite
>> quickly.
> Yes, it's surprising fast given it's never been performance tuned...
>>
>> However then the Workbench goes into some kind of frozen state. I
>> suppose it is recompiling all the generated source files and those
>> that depend on them. Strangewisely there is no "Building workspace"
>> progress indicator.
> What all ends up happening depends quite a bit on what's installed
> because that affects the builders. I would expect at the end a single
> workspace delta to be produced and that all the normal things that would
> happen in response to that (just as in response to saving a single file)
> would kick in. The generator does nothing to invoke a build so in the
> end, isn't the thing responsible for producing a progress indicator...
>>
>> For small changes I only generate code for specific model elements.
>> But often I feel unsafe about this so I tend the re-generate everything.
> That's usually a good idea.
>>
>> Is there a way to reduce the build time after such overall code
>> generation?
> No.
>>
>> Is this a known problem?
> No. The generator is quite smart in that it compares the generated file
> against what's there already and if there is no change, it doesn't save
> the results. The result is that generating produces a minimal delta and
> the build kicked off in response is doing as little as possible. I do
> notice that things like the indexer that Xtext installs adds
> significantly to the build time.
>
> Have you tried keeping the Progress view on top to see what kicks in
> after the generation step?
>
> I assume you're doing generate from the Generator? I noticed that things
> like the workflow engine do a full refresh of the workspace and that
> takes quite long, especially in a large workspace.
>>
>> Thanks and regards,
>> Dirk
|
|
|
|
Powered by
FUDForum. Page generated in 0.02728 seconds