Project: AspectJ
Bug 117189 Contribution: reduce overhead when no aspects define
Reported: 2005-11-19 13:05:59 | Status: resolved fixed

This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies instead of creating BCEL objects for a resolution loader (which is currently broken since reflective proxies now require a ReflectionWorld...)

Files changed in fix:
loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java