I was just wondering..
What would be wronge with using conditional
compilation to reduce the foot print of the object in DynAPI?
By this I mean not actually initializing a member
function until needed.
I.E.
DynLayer.setBgColor.
when you make the very first call the this function
in a specific instance the object woul;d say 'have I initialized this function?'
if not then it will..
eval("myOBJ.prototype.setBgColor="..."); or some
such..
The reason I am bringin this up, is that there is
no good reason for a document consisting of a single toolbar, 5 lables and two
dynlayers should have a memory footprint of almost a meg..
Doug Melvin
|