Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-1795

[patch] avoid unnecessary use of synchronized collection for non escaped local varables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.0 rc 2
    • None
    • None
    • ubuntu jdk1..6.17 ant 1.8

    Description

      code uses a Hashtable even tho the collection is a local variable that is not escaped from the method. The synchronization is not needed, switch to HashMap.

      Attachments

        1. avoid_local_sync_collections.diff
          0.7 kB
          Dave Brosius

        Activity

          People

            dbrosius David Brosius
            dbrosius@apache.org Dave Brosius
            David Brosius
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified