JDK-7184799 : Introspector.getBeanInfo() performance regressed substantially with JDK 7
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2012-07-17
  • Updated: 2012-07-18
  • Resolved: 2012-07-18
Related Reports
Duplicate :  
Description
Even with Java 7 Update 6 build 19, Introspector.getBeanInfo() performance appears to have regressed substantially with Java 7:

The attached sample program produced:
D:\Java\jdk1.6.0_32\bin\java.exe ResourceBundlePerfBug  took: 18 ms
D:\Java\jdk1.7.0_04\bin\java.exe ResourceBundlePerfBug  took: 46 ms
D:\Java\jdk1.7.0_06\bin\java.exe ResourceBundlePerfBug  took: 39 ms
 
So Update 6 improved things, but 39ms is still a substantial regression from 18ms.

Comments
EVALUATION Additional time is needed to process generic types.
18-07-2012