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

SizeCommand unnecessarily unmarshalls keys to count

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.1.1.Final
    • 9.1.0.Final
    • Core
    • None

    Description

      The SizeCommand uses cache.keySet().stream().count() to count keys, but if the cache is using binary storage, this unmarshalls each key.
      Using the identityencoder allows us to make this operation much cheaper.

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            ttarrant@redhat.com Tristan Tarrant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: