Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-401

[BeanUtils2] Performance improvement: store hash code of AccessibleObjectDescriptor as member variable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: BeanUtils2
    • Labels:
      None

      Description

      As discussed on the ML, we should store the hash code of AccessibleObjectDescriptor in a private member variable after it has been computed the first time. The computed value can be returned on subsequent invocations. Since AccessibleObjectDescriptor is immutable (all of its fields are final) the hash code can never change, once an AccessibleObjectDescriptor has been initialized.

        Attachments

        1. SANDBOX-401.txt
          2 kB
          Benedikt Ritter
        2. SANDBOX-401v2.txt
          1 kB
          Benedikt Ritter

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              britter Benedikt Ritter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: