help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memory management in ocf-files


From: Jose
Subject: memory management in ocf-files
Date: Mon, 1 Oct 2012 16:03:09 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0

Hello.

I am writing my first oct-file (switching from mex as I have read somewhere that it is faster), and I have some doubts about memory management.

The whole application that I am working with is somehow complex, with threads, sockets and handling real time data gathered from some remote sensors. In essence the application is started from octave, and the receiving threads run in the background storing data in buffers while octave is doing some computations. When octave is ready to process some data, it gets the data from the buffers and does some calculations again. And the loop continues.

So, as measurements arrive, the receiving threads will create new octave structures and matrices that are stored in the buffers waiting to be passed to octave through an oct-file. I am concerned about what happens with all that memory once that the data has been passed to octave and used. Does octave delete those objects automatically or should I do something to free the memory?

BR
Jose


reply via email to

[Prev in Thread] Current Thread [Next in Thread]