How can it be lightweight when it has to make a deep copy of the true key using serialization? Bill's change was to add yet another copy, so now there is the copying of the true key into a MarshalledObject followed by a copy of this using MarshalledObject.get(). Your change just removed both of these which seems like NullPointerException territory in the equals() method.
Your comment in equals about the fool-proofness of this implementation has already been demonstrated to be false, so unless we go beyond this how is this class gaining us any performance? ----- Original Message ----- From: "marc fleury" <[EMAIL PROTECTED]> To: "Scott M Stark" <[EMAIL PROTECTED]>; "Jboss-Development@Lists. Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 3:59 PM Subject: RE: [JBoss-dev] CacheKey copy semantics and speed > The basic cachekey is not expensive, in fact it is more lightweight than a > regular key, creating the serialized representation is expensive, and again > afair it was bill correcting the copy problem on key reuse inside one VM. > > marcf > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development