> This is a separate task (not that it is not important), so I'd not mix it 
> with serialVersionUID discussion. 

OK :-)

> I have similar ideas about changing internal structure of CayenneDataObject 
> (using [] instead of a map).

That would definitely require some serious performance measurements.

The other data structure I have been thinking about is the objects themselves, 
and using Method objects to access the fields when by-name access or iterating 
over all fields is required. (I shamelessly stole that approach from 
org.apache.commons.beanutils.PropertyUtilsBean, which has to solve similar 
problems.)

Just a whacko idea I've been playing with, I have no idea whether it will be 
truly faster. Method#invoke looks like it could be optimizable, but maybe not 
well enough to actually beat array access plus run-time type cast.
So: more performance testing :-)

Regards,
Jo

Reply via email to