Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Slow if() compilation -- bug?

Hi there,

there must be some "bug" in compiling the if - Statements in the Pointcut declarations. For example:

    pointcut Pc2() :
        (execution(* Test.a(..)) && if (sl.isEnabled()))
        || (execution(* Test.b(..)) && if (sl.isEnabled()));

Is compiled very quickly, in about one second. Up to 7 such conditions , eg.

    pointcut Pc7() :
        (execution(* Test.a(..)) && if (sl.isEnabled()))
        || (execution(* Test.b(..)) && if (sl.isEnabled()))
        || (execution(* Test.c(..)) && if (sl.isEnabled()))
        || (execution(* Test.d(..)) && if (sl.isEnabled()))
        || (execution(* Test.e(..)) && if (sl.isEnabled()))
        || (execution(* Test.f(..)) && if (sl.isEnabled()))
        || (execution(* Test.g(..)) && if (sl.isEnabled()));

are also compiled quite quickly (~ 3 seconds).

Now, adding another condition (8 lines) causes 10 seconds compile time. Adding yet another condition line (= 9 ex. lines) causes 1 min and 30 seconds compile time!

(I just tried with 13 such condition lines, but aborted compilation after 10 minutes)

Shall I submit this to bugzilla? Or are you already aware of this problem?

Regards,
Simon








Back to the top