[infinispan-issues] [JBoss JIRA] (ISPN-7399) Make visitCommand return an Object instead of an InvocationStage

Pedro Ruivo (JIRA) issues at jboss.org
Fri Jan 27 13:05:00 EST 2017


     [ https://issues.jboss.org/browse/ISPN-7399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Ruivo updated ISPN-7399:
------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> 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.CR1
>
>
> 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)}}.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list