[clean-list] Program becomes slower

Willer Alves willeralves@yahoo.com.br
Thu, 20 Dec 2001 16:37:47 -0200


Hello all!

I'm building a Clean Object IO example (a simulator of an electrical engine) which does the following:

It receives some data, writes that in a file and opens another program with this file. The result of the other program is stored in another file that is readen by the Clean Object IO program, which builds a list ( [ [ Real ] ] ) and plots the result in a new window. The problem is, when I do the first simulation, the program is OK (very fast). But when I try to another one (without closing the Clean Object IO program), the reading of the result file becomes slower (and I mean too much slower). Do you know what could be wrong? I've tested both programs with a RAM manager and the problem is just these (the second reading is slower than the first one). When I close the Clean Object IO program and open it again, it becomes normal again, untill the reading of the second simulation result. Do you think the problem could be memory allocation? Is there a Clean function like "free" in C, to free the first list before I build the second one? What do you think?

Thank you all.

Willer Alves
Brazil


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com