Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] weave-only w/o aspectj runtime elements

Have you actually measured the overhead caused by this David? One thing to
consider is that an if(flag) pointcut can be evaluated inline to avoid even
the overhead of a method call in cases where you don't want to measure
performance.

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Andy Clement
Sent: Tuesday, July 10, 2007 8:40 AM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] weave-only w/o aspectj runtime elements

I presume you mean the forwarding methods ajc$XXX that are invoked
from the woven code and that actually execute your desired behaviour.
No, those can't be removed.  We work hard to optimize what is inserted
but we have that layer of indirection to ease situations like separate
compilation.  Suppose you change the behaviour you want to be woven,
by using the indirection we only have to recompile the aspect - if
everything was inlined directly then we'd have to recompile/reweave
everything.

Andy.

On 10/07/07, David Wood <dawood@xxxxxxxxxx> wrote:
>
> We're trying to use the AspectJ compiler to do byte code insertion
(perhaps
> that's where we've gone wrong).   We are building a runtime performance
> monitor and therefore need to avoid any overhead.  As such, we need only
our
> methods to be inserted at the point cuts and not to have the full AspectJ
> runtime elements loaded at all during runtime.  AspectJ's regular
expression
> pointcut definitions and weaving are what originally attracted us, but we
> would like to avoid the compiler inserting the aspect classes as wrappers
> around the code we want inserted,    Anyway to do this?  If not, is there
> another tool  we should be considering instead?  Thanks.
>
>
> David Wood,
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top