Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7399

Make visitCommand return an Object instead of an InvocationStage

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 9.0.0.CR1
    • 9.0.0.Beta2
    • Core
    • None

    Description

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

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: