AlexA Posted January 6, 2014 Report Share Posted January 6, 2014 Hi Guys, I've started sending some really big messages around my application and I was wondering if memory is allocated at each message handler? See the following code pic for an example: More generally, what are the best ways to pass around massive data blocks (100s of MB) between processes? Cheers, Alex Quote Link to comment
ned Posted January 7, 2014 Report Share Posted January 7, 2014 Enqueue/Dequeue does not make a copy, so queues are a good choice here. Of course, if you enqueue data and continue to modify it at the same time, after it's already in the queue, then you'll force a copy because you'll need to have one copy in the queue and another to modify, so make sure that the wire ends at the enqueue. Preview Queue will make a copy of the data, since one copy needs to stay in the queue. Quote Link to comment
Neville D Posted January 7, 2014 Report Share Posted January 7, 2014 You could use Data Value References when dealing with large blocks of data. Thats what they were designed for. 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.