United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 2225647 PropertyDescriptor Performance Slow
2225647 : PropertyDescriptor Performance Slow

Details
Type:
Backport
Submit Date:
2012-06-15
Status:
Resolved
Updated Date:
2012-07-30
Project Name:
JDK
Resolved Date:
2012-07-30
Component:
client-libs
OS:
Sub-Component:
java.beans
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
Fixed Versions:
7u6

Related Reports
Backport:

Sub Tasks

Description
                                    

Comments
EVALUATION

Times for the test above:
    jdk1.6u34:  222ms
    jdk1.7u04: 2948ms
    jdk1.7u06:  681ms

Seems, I found a way to improve performance more.
                                     
2012-07-18
EVALUATION

The fix increases performance up to 3 times, making it still 3 times worse than it was before the regression

I used the code below for verification

public class PropertyDescriptorTest {
    public static void main(String[] args) throws Exception {
        long starttime = System.nanoTime();
        for (int i = 0; i < 10000; i++) {
            new PropertyDescriptor("name", PropertyDescriptor.class);
        }
        long time = System.nanoTime() - starttime;
        System.err.println(time/1000000);
    }
}
                                     
2012-07-17
EVALUATION

The situation described above confirmed on another host (another platform). Fixed build still shows 3 times performance loss compared to 1.6 release.

Closing as Fixed failed
                                     
2012-07-17
EVALUATION

Backporting to JDK 7. See details in the main CR.
                                     
2012-06-15



Hardware and Software, Engineered to Work Together