Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-212

org.apache.commons.ognl.internal.ClassCacheImpl is not efficient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • 4.0
    • None
    • None

    Description

      I know that maybe we're speaking of a small amount of data, but ClassCacheImpl implementation based on array is not efficient at all; both get(Class) and put(Class, Object) methods have complexity O(n). Using a Map we can reduce the complexity to O(1)

      Attachments

        Activity

          People

            Unassigned Unassigned
            simone.tripodi Simone Tripodi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: