[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: [Gnash-dev] FileIO extension eating up memory (was: Building exte
From: |
Udo Giacomozzi |
Subject: |
Re[2]: [Gnash-dev] FileIO extension eating up memory (was: Building extensions) |
Date: |
Wed, 9 May 2007 15:49:34 +0200 |
Hello Udo,
Wednesday, May 9, 2007, 3:29:54 PM, I wrote:
UG> I attached a simple testcase that shows the problem.
Here's a new one showing the memory raising:
-----------------8<--------------------------------
function loadfile(fname) {
var file = new FileIO();
if (!file.fopen(fname, "r"))
return null;
var txt = file.fread();
file.fclose();
return txt;
}
mem = loadfile("/proc/self/statm");
if (!cycles) cycles=0;
cycles++;
gotoAndPlay(2);
-----------------8<--------------------------------
NOTE: Creating the instance (new FileIO) only once and reusing it is
better, but still eats up memory somewhere...
Udo
fread_test.swf
Description: application/shockwave-flash