Commit fa52ace4 authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

cleaning memory

parent 49ceb3ec
Pipeline #413 skipped
......@@ -57,8 +57,18 @@ def makehtml(gdata):
return e.charCodeAt(0);
});
var output = new Zlib.Inflate(compressData).decompress();
var strData = String.fromCharCode.apply(null, new Uint16Array(output));
var out16 = new Uint16Array(output);
var QUANTUM = 32768;
var strData = "";
for (var i = 0, len = out16.length; i < len; i += QUANTUM) {
strData += String.fromCharCode.apply(null, out16.subarray(i, Math.min(i + QUANTUM, len)));
}
window.dataall = JSON.parse(strData);
delete base64Data;
delete compressData;
delete output;
delete out16;
delete stdData;
</script>
<script>
google.load('visualization', '1', {packages: ['corechart']});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment