I was recently viewing a C optimization tutorial:
C Optimisation tutorial
I noticed in the misc section that it states:
"If your library supports the mallopt() function (for controlling malloc), use it. The MAXFAST setting can make significant improvements to code that does a lot of malloc work.If a particular structure is created/destroyed many times a second, try setting the mallopt options to work best with that size. "
Is this an accurate statement? I have been looking for examples in which people have used mallopt() rather than malloc and i can't seem to find much. If I am trying to optimize my code to it's maximum potential and I am performing a very larger number of mallocs for relatively small amounts of memory is it better to use mallopt()? If so where might I find some examples or more information on this?