Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5704 Enhancements for Functional Map API
  3. ISPN-6935

Use Collection instead of Set

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Final
    • 9.0.0.Final
    • Core
    • None

      Currently the xManyCommand commands hold the keys in a set internally. During marshalling and splitting the set (when the command goes remote), we use HashSet. However, this has drawbacks:
      a) if the set passed to command uses different means of equality than Object.hashCode() and Object.equals() we may lose some keys in the derived set - we don't inject dataContainer's keyEquivalence to the commands
      b) as these sets are usually just iterated through (contains() is rare) it's less effective to use complex data structures as HashSet - plain ArrayList is sufficient.

              rvansa1@redhat.com Radim Vansa (Inactive)
              rvansa1@redhat.com Radim Vansa (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: