I'm using Javassist to instrument methods with specific calls.
I'm used to apply modification during class loading, but with big classes with a lot of methods to be instrumented this requires a lot of time (usually 500ms for each method).
Is there a way to intercept a method call and instrument only in that moment a specific method?
In alternative, is there a way to improve performance for insertAfter and insertBefore?
Thank you
Ale