[infinispan-issues] [JBoss JIRA] (ISPN-7238) Reduce number of CompletableFuture allocations during async invocation

Dan Berindei (JIRA) issues at jboss.org
Tue Dec 13 09:07:00 EST 2016


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

Dan Berindei updated ISPN-7238:
-------------------------------
    Git Pull Request: https://github.com/infinispan/infinispan/pull/4687, https://github.com/infinispan/infinispan/pull/4723  (was: https://github.com/infinispan/infinispan/pull/4687)


> Reduce number of CompletableFuture allocations during async invocation
> ----------------------------------------------------------------------
>
>                 Key: ISPN-7238
>                 URL: https://issues.jboss.org/browse/ISPN-7238
>             Project: Infinispan
>          Issue Type: Task
>          Components: Core
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>             Fix For: 9.0.0.Beta2, 9.0.0.Final
>
>
> The current asynchronous invocations allocate a new {{CompletableFuture}} instance (plus a {{UniHandle}}, and a {{ComposedAsyncInvocationStage}}) for every interceptor that calls {{compose()}} or the other {{InvocationState}} methods that add a callback.
> We can reduce this by having a list of handlers in each invocation stage, and only creating a new {{CompletableFuture}} when we need to change the {{command}}.



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


More information about the infinispan-issues mailing list