]
Dan Berindei updated ISPN-7399:
-------------------------------
Status: Open (was: New)
Make visitCommand return an Object instead of an InvocationStage
----------------------------------------------------------------
Key: ISPN-7399
URL:
https://issues.jboss.org/browse/ISPN-7399
Project: Infinispan
Issue Type: Task
Components: Core
Affects Versions: 9.0.0.Beta2
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.0.0.Beta3
Replicated read benchmarks show a significant amount of time spent in
{{BasicInvocationStage.toInvocationStage()}}.
We can make {{visitCommand}} return an {{Object}} instead of an {{InvocationStage}}, and
that return value can be cast to an {{InvocationStage}} when a callback is needed. We
can't call {{thenApply()}} etc. directly on an {{Object}}, but we can combine
{{invokeNext(ctx, command).thenApply(function)}} into {{invokeNextThenApply(ctx, command,
function)}}.