Project: AspectJ
Bug 120693 Contribution: More Efficient Lint Warnings: ~15% Performance Increase
Reported: 2005-12-13 15:03:54 | Status: resolved fixed

In profiling a load-time weaving configuration from HEAD, I found that 9% of total time (over 10% of weaving time) is spent in org.aspectj.weaver.Lint.clearSuppressions(), mostly from use inside BcelClassWeaver.match I made a small change in the parts of BcelAdvice that clear suppressions to save the list that was cleared and to only clear these. This alone saves about 15% of total CPU time in start up on my sample configuration.

Files changed in fix:
weaver/src/org/aspectj/weaver/Lint.java weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java