T
tal.shemesh
Hi,
Recently i started to work with javascript and notice that i have
a lot of memory leaks.
I built simple example which creates 100,000 strings and then i
delete them and
the memory is still there
any idea what should i do?
code:
var X = [];
var y;
debugger;
for (y = 0 ; y < 100000 ; y++){
X[y] = "fdsfsddfsdfsdfsdfsdfdsfdsfsdfsdf";
}
debugger;
X = null;
delete X;
Recently i started to work with javascript and notice that i have
a lot of memory leaks.
I built simple example which creates 100,000 strings and then i
delete them and
the memory is still there
any idea what should i do?
code:
var X = [];
var y;
debugger;
for (y = 0 ; y < 100000 ; y++){
X[y] = "fdsfsddfsdfsdfsdfsdfdsfdsfsdfsdf";
}
debugger;
X = null;
delete X;