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

Minimize allocations on common code paths

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Minor
    • 13.0.0.Dev04
    • 12.1.4.Final
    • Core
    • 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

        Issue Links

          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: