/Patrik
i tryed the settings you have suggested
set MAVEN_OPTS=-Xms256m -Xmx1024m
on my computer this setting doesn't change the performance. i can see
in the task manager that the maven uses more memory but it takes the
same time. (the same with set MAVEN_OPTS=-Xms1024m -Xmx1024m)
it is strange that at the step "[INFO]
o.e.emf.mwe.utils.StandaloneSetup - Adding generated EPackage
'sculptormetamodel.SculptormetamodelPackage'" the processing is block
and there is no cpu activity or hard disk usage.
i also tryed with maven 2.2.1 but the same result.
/Patrik
/Patrik
> However, I would never recommend to remove the beatifier. Generated code should be as readable as hand written.
You're right, at least for the one-shot generated Java code is getting rid of the fully-qualified type names needed.
So how about an option to turning off beautifying of the java code in the "/generated/" folders? This code is normally only shown to the compiler and not to the developer (maybe for debugging purposes).
And how is xpand2s built-in java beautifier "org.eclipse.xpand2.output.JavaBeautifier" handling fully-qualified type names? Eclipse code formatter / organize imports isn't capable of removing fully-qualified type names.
/Torsten
Am Montag, 8. August 2011 18:09:37 UTC+2 schrieb Patrik Nordwall:
Thanks for looking into how to speed up generation. I also think it is important. I spent some time on it a while ago to try to do more partial generation, based on what was changed in the model. Xtext has some support for that, but I didn't manage to get it working good enough (immature, complicated), so I placed that idea on the shelf. The best I could do at that point was the partial module generation, as described in docs.Regarding scalable, it is not intended to be used in one big monolithic model. I think we all do better design than that.Regarding beautifier, interesting conclusion. I must see that for my self. Then we have an area to improve.However, I would never recommend to remove the beatifier. Generated code should be as readable as hand written.
/Patrik
mvn clean generate-sources: 12.6 s
I also tried to manually remove all files and then generate without checksum plugin. Same result.
Removed JavaImportBeautifier postprocessor from Sculptorworkflow.mwe2
mvn clean generate-sources: 9.5 sec
Do you see the same kind of result when removing fornax-checksum-m2-plugin?
/Patrik
path = outlet.src.dir /*postprocessor = org.hybridlabs.source.formatter.JavaImportBeautifier {}*/}outlet = {name = "TO_SRC" path = outlet.src.once.dir overwrite = false postprocessor = org.hybridlabs.source.formatter.JavaImportBeautifier { format = false }}
> However, I would never recommend to remove the beatifier. Generated code should be as readable as hand written.
You're right, at least for the one-shot generated Java code is getting rid of the fully-qualified type names needed.
So how about an option to turning off beautifying of the java code in the "/generated/" folders? This code is normally only shown to the compiler and not to the developer (maybe for debugging purposes).
And how is xpand2s built-in java beautifier "org.eclipse.xpand2.output.JavaBeautifier" handling fully-qualified type names? Eclipse code formatter / organize imports isn't capable of removing fully-qualified type names.
/Torsten
Am Montag, 8. August 2011 18:09:37 UTC+2 schrieb Patrik Nordwall:
Thanks for looking into how to speed up generation. I also think it is important. I spent some time on it a while ago to try to do more partial generation, based on what was changed in the model. Xtext has some support for that, but I didn't manage to get it working good enough (immature, complicated), so I placed that idea on the shelf. The best I could do at that point was the partial module generation, as described in docs.Regarding scalable, it is not intended to be used in one big monolithic model. I think we all do better design than that.Regarding beautifier, interesting conclusion. I must see that for my self. Then we have an area to improve.However, I would never recommend to remove the beatifier. Generated code should be as readable as hand written.
/Patrik
>How do you think we should fix it?IMHO the requirement of the sculptor generator (which internally uses a forked JVM) to have a logback.xml on the maven projects classpath is not a good idea.How about shipping the sculptor generator jar with its own logback.xml? This way it's made sure that the generator always runs with appropriate log settings.
Btw. why is the sculptor generator jar a dependency of the maven project instead a dependency of the fornax-oaw-m2-plugin?
/Torsten
/Patrik
/Patrik
On Aug 9, 9:53 pm, Torsten Juergeleit <torsten.j...@gmail.com>
wrote:
> >How do you think we should fix it?
>
> IMHO the requirement of the sculptor generator (which internally uses a
> forked JVM) to have a logback.xml on the maven projects classpath is not a
> good idea.
> How about shipping the sculptor generator jar with its own logback.xml? This
> way it's made sure that the generator always runs with appropriate log
> settings.
>
> Btw. why is the sculptor generator jar a dependency of the maven project
> instead a dependency of the fornax-oaw-m2-plugin?
>
> /Torsten
>
> Am Dienstag, 9. August 2011 20:18:16 UTC+2 schrieb Patrik Nordwall:
>
>
>
>
>
>
>
>
>
> > I found the reason for the "45 s vs 13 s mystery". fornax-checksum-m2-plugin
> > removes logback.xml when it is not changed, as it should, and that means
> > that default debug log level triggers a lot of (invisible) debug log calls
> > inside JavaImportBeautifierImpl.
>
> > This must be fixed somehow. We can't ship projects from archetypes with
> > this silent problem. It goes away as soon as logback.xml has been touched,
> > but the initial experience is bad. I don't think we even generate
> > logback.xml for all project types.
>
> > How do you think we should fix it?
>
> > @agt14: Have you tried to remove fornax-checksum-m2-plugin, or do some
> > modifications in logback.xml?
>
> > /Patrik
>
> > On Tue, Aug 9, 2011 at 5:14 PM, Torsten Juergeleit <torste...@gmail.com