Hi Abishek.
If you remember the term "cross-cutting concern" you can imagine that if e.g.
you change an aspect which matches very many joinpoints, each save &
compilation cycle needs to compile a correspondingly big set of Java classes in
order to do aspect weaving. And if you consider that multiple aspects can
affect one class, those other aspects also need to be woven again as well. I
believe that it is virtually impossible to tell what makes your compilation so
slow without at least partly knowing your code base. For example:
-- Maybe your pointcuts are very general, matching a lot of classes, and
can be refined to match more exactly only those you want.
-- Maybe your pointcuts are a bit naive, saying something like: "Log each
single method call before entering and after exiting." For 18K classes this
would mean a lot of recompilation whenever you change your aspect.
-- Maybe there is a bug in AJDT. Who knows?
It is hard to tell from the prose you presented us with. Can you disclose some
more information, such as paspects (especially pointcut definitions)? Verbose
build logs? A code repository even?
You often say "I feel", but your feelings are not a very good debugging tool
for the rest of us here. Facts over fiction, please. ;-)
Kind regards
--
Alexander Kriegisch
http://scrum-master.de
Abhishek Manocha schrieb am 06.01.2015 11:26:
> I moved my project from normal java project to aspect (AJDT) and since then
> Aspect build is taking ages to complete.
>
> I keep Build automatically checked in eclipse and my project has 18000+
> classes
>
> Also in my Aspect compile setting I have kept Incremental option checked
> eevn then I am faraid it does Full build only.
>
> In AJDT Event trace I can see a lot of AJC comile and woven class messages
> and it just keeps on going.
>
> I also feel If in the filters I do a Selecet All to see the above the compile
> gets slowed.
>
> I feel like its too problematic and not able to get it right so much so, I
> feel like reverting back the changes.
>
> anybody can help for setting up AJDT with acceptable performance. I feel like
> I must be missing something here,
_______________________________________________
aspectj-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users