Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Slow generation outside Eclipse
Slow generation outside Eclipse [message #641899] Mon, 29 November 2010 08:20 Go to next message
Heiko Tappe is currently offline Heiko TappeFriend
Messages: 18
Registered: March 2010
Junior Member
I use this approach to run xtext code generation (1.0.1 / Helios). And almost everything's fine. The only thing I just don't understand is: Why is running the mwe2 workflow (code generation) from outside Eclipse (command line) 4 times (!) slower than from within Eclipse. Any idea? Most probably some different dependant libs are used!? Antlr?

--Heiko
Re: Slow generation outside Eclipse [message #641921 is a reply to message #641899] Mon, 29 November 2010 09:23 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Heiko,

I'd try to use a profiler to tackle this problem.
Do you use the same heap-size?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 29.11.10 09:20, schrieb Heiko Tappe:
> I use
> http://kthoms.wordpress.com/2010/08/18/building-xtext-projec ts-with-maven-tycho/
> approach to run xtext code generation (1.0.1 / Helios). And almost
> everything's fine. The only thing I just don't understand is: Why is
> running the mwe2 workflow (code generation) from outside Eclipse
> (command line) 4 times (!) slower than from within Eclipse. Any idea?
> Most probably some different dependant libs are used!? Antlr?
>
> --Heiko
Re: Slow generation outside Eclipse [message #641943 is a reply to message #641921] Mon, 29 November 2010 10:41 Go to previous messageGo to next message
Heiko Tappe is currently offline Heiko TappeFriend
Messages: 18
Registered: March 2010
Junior Member
Hi Sebastian!

Heap should be large enough (2048m).

If I run a sample profiler on the code generation, it looks like most of the time (70%) is spent on

ch.qos.logback.core.joran.spi.ConsoleTarget$1.write()

So this is definitely something I have to look into. Thanks for that!

Do you know something about logback? Isn't it a logging framework? Why is it "enabled"? Why is it so slow?

--Heiko
Re: Slow generation outside Eclipse [message #641965 is a reply to message #641943] Mon, 29 November 2010 11:13 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Heiko,

Xtext itself does not use logback. However, if logback defines classes
with the very same name and signatures as log4j, Xtext may use it by
accident in a plain java process. You could try to remove it from your
classpath.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 29.11.10 11:41, schrieb Heiko Tappe:
> Hi Sebastian!
>
> Heap should be large enough (2048m).
>
> If I run a sample profiler on the code generation, it looks like most of
> the time (70%) is spent on
>
> ch.qos.logback.core.joran.spi.ConsoleTarget$1.write()
>
> So this is definitely something I have to look into. Thanks for that!
>
> Do you know something about logback? Isn't it a logging framework? Why
> is it "enabled"? Why is it so slow?
>
> --Heiko
Re: Slow generation outside Eclipse [message #641987 is a reply to message #641965] Mon, 29 November 2010 13:13 Go to previous messageGo to next message
Heiko Tappe is currently offline Heiko TappeFriend
Messages: 18
Registered: March 2010
Junior Member
Hi Sebastian,

thank you so much. That did it!!!

I removed all the logback stuff and used just log4j. Now the performance is just like inside Eclipse Smile

BTW, I used the logback stuff because it is advised in the mentioned blog of Karsten Thoms. But obviously it is not needed (any longer?) and at least for me slowed down the code generation.

--Heiko
Re: Slow generation outside Eclipse [message #642031 is a reply to message #641987] Mon, 29 November 2010 15:38 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Heiko,

could you please leave a comment in Karstens blog and describe your
findings? I'd assume that others face a similar problem.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 29.11.10 14:13, schrieb Heiko Tappe:
> Hi Sebastian,
>
> thank you so much. That did it!!!
>
> I removed all the logback stuff and used just log4j. Now the performance
> is just like inside Eclipse :)
>
> BTW, I used the logback stuff because it is advised in the mentioned
> blog of Karsten Thoms. But obviously it is not needed (any longer?) and
> at least for me slowed down the code generation.
>
> --Heiko
Re: Slow generation outside Eclipse [message #642042 is a reply to message #642031] Mon, 29 November 2010 16:25 Go to previous message
Heiko Tappe is currently offline Heiko TappeFriend
Messages: 18
Registered: March 2010
Junior Member
Sure. I did so already Smile
At least I thought I did. But my comment obviously didn't make it to the blog. Or maybe "not yet"!?
I will try again. Hopefully it doesn't show up several times :-S

Will be back...

... worked now. Something didn't work with the link to this forum.
Will try to add the link later...

--Heiko
Previous Topic:Couldn't find property of an imported type
Next Topic:XText and TPTP
Goto Forum:
  


Current Time: Wed Apr 24 21:32:33 GMT 2024

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

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

Back to the top