Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7986

GridPartitionStateMap.entrySet() optimization.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      GridPartitionStateMap based on BitSet. And the size of a BitSet depends on the maximum key element, and not on the number of elements. 

      Just using the "BitSet.nextSetBit" method, will improve the performance of the iterator for big clusters or caches with a large number of partitions.

      Attachments

        1. GridPartitionStateMapBench.java
          3 kB
          Vitaliy Biryukov
        2. fullResult.txt
          51 kB
          Vitaliy Biryukov

        Activity

          People

            VitaliyB Vitaliy Biryukov
            VitaliyB Vitaliy Biryukov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: