-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single managed InterceptorExecutor #244
Conversation
} else { | ||
stack.next(controllerMethod, currentController); | ||
} | ||
} | ||
|
||
private Method find(Class<? extends Annotation> step) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that find is too generic, but I don't have suggestion to a better name. What you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe findMethodWith(AroundCall.class ...)
. looks better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Done 85c52a5
I don't have large knowledge in interceptorexecutor. But sounds like good for me. I really love these optimizations. |
Nice! Tks Otávio. 'll hold just a little more, to more revisions :) |
Have you check performance improvement with AB? |
Yes! Local running, reduces one second on time taken for tests |
if(!around.accept()) around = new StackNextExecutor(simpleInterceptorStack); | ||
if(!before.accept()) before = new DoNothingStepExecutor(); | ||
private void extractAllInterceptorMethods() { | ||
MirrorList<Method> methods = stepInvoker.findAllMethods(interceptorClass); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need MirrorList
here? Why not just List
?
Besides that 🍧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need MirrorList here? Why not just List?
I really need :( stepInvoker.findMethod(...)
uses
MirrorList to call .matching(new InvokeMatcher(step))
Single managed InterceptorExecutor
Now we are using 1 managed app scoped executor,
instead of 4 non-managed for each interceptor handlers.