Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

High usuage of malloc and free

$
0
0

I am using a Model, View, Controller design pattern. I will also be having high amount of memory block pointers going through thread safe queues. Malloc of memory at the sender and then free at the receiver end. I have estimated over 100,000 of malloc/free for every 24hrs that will last 4 months. It's a life test fixture with high amount of measurements.

 

So the question is:

 Is it better to implement a type of SLAB memory manager instead of all the thrashing by calling malloc/free 100k for every 24hrs?

 

Thank you

Dave Rogers

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>