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

Minimize allocations on common code paths

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 12.1.4.Final
    • Fix Version/s: 13.0.0.Dev04
    • Component/s: Core
    • Labels:
      None

      Description

      There are lots of places in core where a method returns a CompletionStage or CompletableFuture, but it's very common for the stage/future to be completed when the method returns. We can check for that and avoid allocating a lambda and/or a new CompletableFuture.

      PersistenceManagerImpl uses RxJava3's Flowable internally to delegate operations to stores, but Flowable adds significant overhead, especially when there is only one store, and the operation only touches one key.

        Attachments

          Activity

            People

            Assignee:
            dan.berindei Dan Berindei
            Reporter:
            dan.berindei Dan Berindei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: