Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2114

Let Clock embed a HashMap rather than inherit from Hashtable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.2.1.6
    • 10.3.1.4
    • None
    • None
    • Performance

    Description

      Clock currently inherits from Hashtable, but the use of Hashtable is really an implementation detail that would benefit from being hidden as private member. All access to the hashtable happens inside sychronized blocks so it is safe to substitute a HashMap. This change appears to trigger a small increase in throughput, as measured by the average TPS number obtained by running the select client from DERBY-1961 repeatedly.

      Attachments

        1. derby-2114.v2.stat
          0.5 kB
          Dyre Tjeldvoll
        2. derby-2114.v2.diff
          10 kB
          Dyre Tjeldvoll
        3. derby-2114.v1.stat
          0.4 kB
          Dyre Tjeldvoll
        4. derby-2114.v1.diff
          9 kB
          Dyre Tjeldvoll
        5. derby-2114.currentsize.v1.stat
          0.3 kB
          Dyre Tjeldvoll
        6. derby-2114.currentsize.v1.diff
          10 kB
          Dyre Tjeldvoll

        Activity

          People

            dyret Dyre Tjeldvoll
            dyret Dyre Tjeldvoll
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: