JDK-6244063 : Performance problems with com.sun.corba.se.impl packages in 5.0
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba:orb
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_1
  • CPU: sparc
  • Submitted: 2005-03-22
  • Updated: 2010-04-03
  • Resolved: 2005-04-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
1.4.2_10Fixed 6Fixed
Description
Noticed very poor 
performance in the method : com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.hashCode() 
(optimizeit html trace is attached).

Seems this accounts to the poor ORB performance experienced with JDK 1.5 (it is still 10% behind JDK 1.4).
###@###.### 2005-03-22 06:59:56 GMT

Comments
SUGGESTED FIX http://jpsesvr.sfbay.sun.com:8080/ctetools/html/ViewDetail.jsp?index=1422 ###@###.### 2005-04-12 18:02:42 GMT
2005-04-12

EVALUATION It appears that the CorbaClientDelegateImpl.hashCode method is calling stringify unnecessarily. Instead, it should call the hashCode method defined on the IOR. This in turn should cache the hashCode computation. Other optimizations are possible, such as caching IORTemplates, but simply caching the hashCode should fix this problem. ###@###.### 2005-03-24 17:43:53 GMT
2005-03-24

WORK AROUND See the following change tried with com.sun.corba.se.impl.ior.IORImpl.java: D:\tmp>diff IORImpl.original.java IORImpl.modified.java 187a188 > private String stringified = null; 189a191 > if (stringified == null) { 203,204c205,208 < return ORBConstants.STRINGIFY_PREFIX + bs; < --- > stringified = ORBConstants.STRINGIFY_PREFIX + bs; > > } > return stringified; This improved performance greatly. ###@###.### 2005-03-22 06:59:56 GMT
2005-03-22