HeLo Posted August 5, 2009 Report Share Posted August 5, 2009 Hi! as my projects become larger, I feel that OOP is the way to go in the future. However my concerns are with memory management. I have to deal with large data junks, means 4x2 MB of 16 bit integers that need to be converted to doubles, in order to do the number crunching needed. In total that makes 64 MB just to hold one copy of the data. Following the recommendations, published on the internet, I actually store the data in smaller junks in a queue and do all "junkable" operations in for loops. Now my question is: Using OOP, do I have to use queues as well to avoid unnecessary data copies or is OOP freeing me at least from some of my concerns? In other words, is there some resource to find out, when data copies are produced in OOP and when the processing occurs in place? Thanks Quote Link to comment
Aristos Queue Posted August 5, 2009 Report Share Posted August 5, 2009 The "Show Buffer Allocations" tool works for objects just as it does for any other LV data type. LV objects are a scalar data type, so enable the check box for "Scalar" and you'll be able to see where buffer allocations are created for your class wires. Quote Link to comment
HeLo Posted August 11, 2009 Author Report Share Posted August 11, 2009 Thanks Aristos, so I just have to plunge into LVOOP and do some tests. Herbert Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.