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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • BeanUtils2
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: