Actually I tried delete, splice, slice.. etc but no effect what so ever. I understand that garbage collection in javascript is automatic so if some data goes out of reference in javascript, it should be garbage collected. Programmer should not bother. Right?
I did some further testing...
I have following simple program to test garbage collection using IE 5.5
<html>
<script>
var data = new Array();
function addElements()
{
if(data == null)
data = new Array();
for (var i=0; i<5000; ++i)
{
var x = data.length;
data[x] = new Object();
data[x].data1 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.