Project: AspectJ
Bug 49743 performance improvements for runtime library
Reported: 2004-01-08 17:37:54 | Status: resolved fixed

I am heavily using the runtime signature information from thisJoinPoint.getSignature() and the toString() method of it. This causes heavy String operations each time the toString method is called. Would it be possible to cache the resulting string for example in MethodSignatureImpl and similar classes for other signatures?

Files changed in fix:
runtime/src/org/aspectj/runtime/reflect/AdviceSignatureImpl.java runtime/src/org/aspectj/runtime/reflect/CatchClauseSignatureImpl.java runtime/src/org/aspectj/runtime/reflect/ConstructorSignatureImpl.java runtime/src/org/aspectj/runtime/reflect/Factory.java runtime/src/org/aspectj/runtime/reflect/FieldSignatureImpl.java runtime/src/org/aspectj/runtime/reflect/InitializerSignatureImpl.java runtime/src/org/aspectj/runtime/reflect/MethodSignatureImpl.java runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java runtime/src/org/aspectj/runtime/reflect/SourceLocationImpl.java runtime/src/org/aspectj/runtime/reflect/StringMaker.java runtime/testsrc/RuntimeModuleTests.java runtime/testsrc/org/aspectj/runtime/reflect/RuntimePerformanceTest.java runtime/testsrc/org/aspectj/runtime/reflect/SignatureTest.java