On Mar 5, 2008, at 2:43 PM, Andrus Adamchik (JIRA) wrote:
> a. DataRow - 120 bytes,
> b. HashMap - 104 bytes,
> c. Object[] - 32 bytes,
> d java.lang.Integer - 16 bytes
This got me thinking about DataRow memory/creation efficiency
throughout the framework. We are wasting lots of space on repeating
information. Essentially a DataRow for each entity has a well defined
set of keys, so ideally we can normalize the storage of DataRows
internally, saving an Object[] of values with a reference to a shared
"decode map", one per entity. Such a shared map would have DbAttribute
names for the keys and array positions for the values. What we'll lose
is the ability to serialize DataRows (e.g. for remote notifications),
but maybe we can work around it somehow.
Just thinking out loud ...
Andrus
This archive was generated by hypermail 2.0.0 : Wed Mar 05 2008 - 08:44:34 EST