Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2481

Use IdentityHashmap in Util.TYPES and ClassConfigurator

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 5.0.0.Beta2
    • None
    • None

    Description

      When we have lookup hashmaps, populated at startup, and not changed afterwards, we can use IdentityHashmaps, as a get() is constant.
      For keys with a contiguous range (e.g. [1 .. 20]), we might even use a simple array of keys and values, e.g. [K1,V1,K2,V2, ... Kn,Vn.

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: