Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » slow compilation/weaving
slow compilation/weaving [message #69584] Wed, 28 February 2007 15:20 Go to next message
Eclipse UserFriend
Originally posted by: amster1981.gmail.com

Hello,

I hope i'm not writing into wrong mailing list. I would like to ask...i'm
using eclipse 3.2.2, ajdt 1.4.0, aspectj 1.5.2, i'm having project with
107 classes, which in my opinion is not much, since my project is just a
part of whole application. When i edit only one particular class(even just
comments), and then save, i'm waiting 12 seconds for build to finish(too
long), while it goes thru every compiled class in my project. My question
is, why does it have to go thru all classes when i change only one? Is
something wrong on my side? Or is it known issue/bug? I did not change
settings of AspectJ compiler, might there be some change i need to do?

My computer configuration related to performace issue: Intel Core 2 Duo
T5600 1.83 GHz, 2 GB RAM so-dimm 667 MHz

Aspects seem like great choice for cross-cuting concerns, but with this
speed of development, it's a problem.

AOP/AspectJ enthusiast
Andrej
Re: slow compilation/weaving [message #69604 is a reply to message #69584] Wed, 28 February 2007 16:20 Go to previous messageGo to next message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
I suggest you try upgrading to AJDT 1.4.1 for Eclipse 3.2.
Then if you still have problems, try opening the AJDT Event Trace view,
then press the filters button and turn on all the options. Then make a
whitespace change to a class, and look at the messages in the view.

Andrej wrote:
> Hello,
>
> I hope i'm not writing into wrong mailing list. I would like to
> ask...i'm using eclipse 3.2.2, ajdt 1.4.0, aspectj 1.5.2, i'm having
> project with 107 classes, which in my opinion is not much, since my
> project is just a part of whole application. When i edit only one
> particular class(even just comments), and then save, i'm waiting 12
> seconds for build to finish(too long), while it goes thru every compiled
> class in my project. My question is, why does it have to go thru all
> classes when i change only one? Is something wrong on my side? Or is it
> known issue/bug? I did not change settings of AspectJ compiler, might
> there be some change i need to do?
>
> My computer configuration related to performace issue: Intel Core 2 Duo
> T5600 1.83 GHz, 2 GB RAM so-dimm 667 MHz
>
> Aspects seem like great choice for cross-cuting concerns, but with this
> speed of development, it's a problem.
>
> AOP/AspectJ enthusiast
> Andrej
>
Re: slow compilation/weaving - solved [message #69623 is a reply to message #69604] Wed, 28 February 2007 19:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amster1981.gmail.com

I've upgraded to ajdt 1.4.1 and then tried to make whitespace in one class
and then save. Compiler/weaver went thru only this one class i changed and
it was done in less than second. So my problem is solved. I haven't
thought that the solution might be so simple. I'll try harder next time to
be on time with updates. Thank you for hint and also thanks for fast
response.
Re: slow compilation/weaving [message #69661 is a reply to message #69623] Thu, 01 March 2007 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amster1981.gmail.com

I'm having eclipse 3.2.2, ajdt 1.4.1, aspectj 1.5.3.
The problem of slow compilation/weaving arose again. Can't figure out yet
why, because when i upgraded to ajdt 1.4.1, and tried to edit classes, it
was running fine, ie. only compiled/weaved the class i edited. By then, i
had just one aspect. But when i started to add another aspect, do some
refactoring in my classes, change hierarchy of my classes, at some
point(unknown to me), it started to do always full builds. Now, when i
make whitespace only in one class and save it, in AJDT Event Trace it
writes:

11:16:17
============================================================ ===============================
11:16:17 Build kind = AUTOBUILD
11:16:17 Project=<commented>, kind of build requested=Incremental AspectJ
compilation
11:16:17 build: Examined delta - source file changes in required project
<commented>
11:16:17
Classpath=<commented>;<commented> /eclipse3_2_1/plugins/org.aspectj.runtime_1.5.3.200611221118 /aspectjrt.jar;
11:16:17 Preparing for build: not going to be incremental because no
successful previous full build
11:16:17 Falling back to batch compilation
11:16:17 Preparing for build: not going to be incremental because no
successful previous full build
11:16:17 AJC: compiling source files
11:16:17 Timer event: 687ms: Time to first compiled message
11:16:18 AJC: compiled: <commented>
11:16:18 AJC: compiled: <commented>
11:16:18 AJC: processing reweavable state
11:16:18 AJC: adding type mungers
11:16:18 Timer event: 891ms: Time to first woven message
11:16:18 AJC: woven aspect <commented>.BusinessMethodLogging <commented>
11:16:18 AJC: woven aspect <commented>.UnitTestCommons <commented>
11:16:18 AJC: compiled: <commented>

and so on...until...

11:16:47 AJC: compiled: <commented>
11:16:47 AJDE Callback: finish. Was full build: true
11:16:47 Timer event: 30500ms: Total time spent in AJDE
11:16:47 Timer event: 78ms: Create element map (46 rels in project:
<commented>)
11:16:47 Types affected during build = 137
11:16:47 Timer event: 16ms: Add markers (25 markers)
11:16:48 Timer event: 30906ms: Total time spent in AJBuilder.build()

Any hints?
Re: slow compilation/weaving [message #69701 is a reply to message #69661] Thu, 01 March 2007 17:53 Go to previous message
Eclipse UserFriend
Originally posted by: amster1981.gmail.com

i've been investigating...after changing package structure and moving
classes outside of Eclipse and then refreshing project in Eclipse, AJDT
seems to be doing full build everytime i make change, even just
whitespace, after that refresh. I need to remove AspectJ capability and
then add it.

I guess that this is not the way to work with Eclipse, but sometimes
moving classes in Eclipse takes longer than moving outside and refreshing.

Sorry for confusing.
Re: slow compilation/weaving [message #595893 is a reply to message #69584] Wed, 28 February 2007 16:20 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
I suggest you try upgrading to AJDT 1.4.1 for Eclipse 3.2.
Then if you still have problems, try opening the AJDT Event Trace view,
then press the filters button and turn on all the options. Then make a
whitespace change to a class, and look at the messages in the view.

Andrej wrote:
> Hello,
>
> I hope i'm not writing into wrong mailing list. I would like to
> ask...i'm using eclipse 3.2.2, ajdt 1.4.0, aspectj 1.5.2, i'm having
> project with 107 classes, which in my opinion is not much, since my
> project is just a part of whole application. When i edit only one
> particular class(even just comments), and then save, i'm waiting 12
> seconds for build to finish(too long), while it goes thru every compiled
> class in my project. My question is, why does it have to go thru all
> classes when i change only one? Is something wrong on my side? Or is it
> known issue/bug? I did not change settings of AspectJ compiler, might
> there be some change i need to do?
>
> My computer configuration related to performace issue: Intel Core 2 Duo
> T5600 1.83 GHz, 2 GB RAM so-dimm 667 MHz
>
> Aspects seem like great choice for cross-cuting concerns, but with this
> speed of development, it's a problem.
>
> AOP/AspectJ enthusiast
> Andrej
>
Re: slow compilation/weaving - solved [message #595902 is a reply to message #69604] Wed, 28 February 2007 19:54 Go to previous message
Andrej is currently offline AndrejFriend
Messages: 10
Registered: July 2009
Junior Member
I've upgraded to ajdt 1.4.1 and then tried to make whitespace in one class
and then save. Compiler/weaver went thru only this one class i changed and
it was done in less than second. So my problem is solved. I haven't
thought that the solution might be so simple. I'll try harder next time to
be on time with updates. Thank you for hint and also thanks for fast
response.
Re: slow compilation/weaving [message #595920 is a reply to message #69623] Thu, 01 March 2007 10:34 Go to previous message
Andrej is currently offline AndrejFriend
Messages: 10
Registered: July 2009
Junior Member
I'm having eclipse 3.2.2, ajdt 1.4.1, aspectj 1.5.3.
The problem of slow compilation/weaving arose again. Can't figure out yet
why, because when i upgraded to ajdt 1.4.1, and tried to edit classes, it
was running fine, ie. only compiled/weaved the class i edited. By then, i
had just one aspect. But when i started to add another aspect, do some
refactoring in my classes, change hierarchy of my classes, at some
point(unknown to me), it started to do always full builds. Now, when i
make whitespace only in one class and save it, in AJDT Event Trace it
writes:

11:16:17
============================================================ ===============================
11:16:17 Build kind = AUTOBUILD
11:16:17 Project=<commented>, kind of build requested=Incremental AspectJ
compilation
11:16:17 build: Examined delta - source file changes in required project
<commented>
11:16:17
Classpath=<commented>;<commented> /eclipse3_2_1/plugins/org.aspectj.runtime_1.5.3.200611221118 /aspectjrt.jar;
11:16:17 Preparing for build: not going to be incremental because no
successful previous full build
11:16:17 Falling back to batch compilation
11:16:17 Preparing for build: not going to be incremental because no
successful previous full build
11:16:17 AJC: compiling source files
11:16:17 Timer event: 687ms: Time to first compiled message
11:16:18 AJC: compiled: <commented>
11:16:18 AJC: compiled: <commented>
11:16:18 AJC: processing reweavable state
11:16:18 AJC: adding type mungers
11:16:18 Timer event: 891ms: Time to first woven message
11:16:18 AJC: woven aspect <commented>.BusinessMethodLogging <commented>
11:16:18 AJC: woven aspect <commented>.UnitTestCommons <commented>
11:16:18 AJC: compiled: <commented>

and so on...until...

11:16:47 AJC: compiled: <commented>
11:16:47 AJDE Callback: finish. Was full build: true
11:16:47 Timer event: 30500ms: Total time spent in AJDE
11:16:47 Timer event: 78ms: Create element map (46 rels in project:
<commented>)
11:16:47 Types affected during build = 137
11:16:47 Timer event: 16ms: Add markers (25 markers)
11:16:48 Timer event: 30906ms: Total time spent in AJBuilder.build()

Any hints?
Re: slow compilation/weaving [message #595935 is a reply to message #69661] Thu, 01 March 2007 17:53 Go to previous message
Andrej is currently offline AndrejFriend
Messages: 10
Registered: July 2009
Junior Member
i've been investigating...after changing package structure and moving
classes outside of Eclipse and then refreshing project in Eclipse, AJDT
seems to be doing full build everytime i make change, even just
whitespace, after that refresh. I need to remove AspectJ capability and
then add it.

I guess that this is not the way to work with Eclipse, but sometimes
moving classes in Eclipse takes longer than moving outside and refreshing.

Sorry for confusing.
Previous Topic:method signature for handler pointcut
Next Topic:ajdt and log4j
Goto Forum:
  


Current Time: Sun Dec 21 04:22:15 GMT 2014

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

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