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
|
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
|