> -----Original Message-----
> [mailto:[EMAIL PROTECTED] Behalf Of Hiram
> Chirino
> Sent: Thursday, March 27, 2003 2:31 PM
> Subject: RE: [JBoss-dev] AOP versioned ACID objects 1st iteration
> That might be a problem if you have a big object
> graph.  You get a big penalty even if you only modify
> a small peice of the object graph.
> You could do a shallow copy by getting a snapshot of
> the fields of the object.  Then wrap up the children
> objects with "Versioned.makeVersioned(child)" when
> they are accessed.  The cool thing is that you would
> not have any serialization at all.  I know that there
> has to be some down-sides to this approach, help me
> figure them out.

Interesting idea, but I don't know if it would be more performant.  The
problem is primitive types.  You can't make these versionable by themselves
and field interception is expensive.  Another thing, I'm not sure this
approach would work with non-static inner classes.


This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
Jboss-development mailing list

Reply via email to