T
Tim
I need some advice on how to approach a certain scenario, I have a
grid in which I will be adding and removing rows dynamically, I am
unsure if I should create rows as objects or just simply build the DOM
structure and append it?
I would prefer to go the OO route, but my main concern is creating
hundreds of instances of a object just floating around in memory. As
far as I know there is no way to destroy instances, so once a row is
removed the instance still exists, I don't know how garbage collection
works in modern browsers so maybe this isn't an issue.
I guess my real question is; do multiple instances take up memory or
slow the CPU?
Thanks
grid in which I will be adding and removing rows dynamically, I am
unsure if I should create rows as objects or just simply build the DOM
structure and append it?
I would prefer to go the OO route, but my main concern is creating
hundreds of instances of a object just floating around in memory. As
far as I know there is no way to destroy instances, so once a row is
removed the instance still exists, I don't know how garbage collection
works in modern browsers so maybe this isn't an issue.
I guess my real question is; do multiple instances take up memory or
slow the CPU?
Thanks