[jira] [Updated] (SANDBOX-401) [BeanUtils2] Performance improvement: store hash code of AccessibleObjectDescriptor as member variable

2012-03-05 Thread Benedikt Ritter (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/SANDBOX-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Ritter updated SANDBOX-401:


Attachment: SANDBOX-401v2.txt

Improved! I've also configured my IDE to use wildcard imports if there are 
three or more imports from one package. What threshold do you use for this?

> [BeanUtils2] Performance improvement: store hash code of 
> AccessibleObjectDescriptor as member variable
> --
>
> Key: SANDBOX-401
> URL: https://issues.apache.org/jira/browse/SANDBOX-401
> Project: Commons Sandbox
>  Issue Type: Improvement
>  Components: BeanUtils2
>Affects Versions: Nightly Builds
>Reporter: Benedikt Ritter
> Attachments: SANDBOX-401.txt, SANDBOX-401v2.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (SANDBOX-401) [BeanUtils2] Performance improvement: store hash code of AccessibleObjectDescriptor as member variable

2012-03-02 Thread Benedikt Ritter (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/SANDBOX-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Ritter updated SANDBOX-401:


Attachment: SANDBOX-401.txt

I've attached a patch.

TIA for reviewing ;)
Benedikt

> [BeanUtils2] Performance improvement: store hash code of 
> AccessibleObjectDescriptor as member variable
> --
>
> Key: SANDBOX-401
> URL: https://issues.apache.org/jira/browse/SANDBOX-401
> Project: Commons Sandbox
>  Issue Type: Improvement
>  Components: BeanUtils2
>Affects Versions: Nightly Builds
>Reporter: Benedikt Ritter
> Attachments: SANDBOX-401.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira