commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (BEANUTILS-295) Unnecessary Garbage Objects in Class PropertyUtilsBean
Date Wed, 02 Jan 2008 06:45:34 GMT

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

Henri Yandell closed BEANUTILS-295.
-----------------------------------

    Resolution: Fixed

svn ci -m "Applying Stefan Wohlgemuth's patch to provide a performance improvement (see: BEANUTILS-295)
by not creating a new empty array every time" src/java/org/apache/commons/beanutils/PropertyUtilsBean.java

Sending        src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Transmitting file data .
Committed revision 608027.

> Unnecessary Garbage Objects in Class PropertyUtilsBean
> ------------------------------------------------------
>
>                 Key: BEANUTILS-295
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-295
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.0-BETA
>            Reporter: Stefan Wohlgemuth
>            Priority: Minor
>             Fix For: 1.8.0
>
>         Attachments: profiling.png, PropertyUtilsBean_EmptyObjectArray_Patch.txt
>
>
> In class PropertyUtilsBean there are several places where the following statement is
called:
> Object value = invokeMethod(readMethod, bean, new Object[0]);
> The statement could be replace with the following statement, whithout creating the unused
Object array (as we know invoke will be called of a method without method parameters):
> Object value = invokeMethod(readMethod, bean, null);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message