Reducing the number of memory allocations

Hidden memory allocations are produced by C++ all the time when an application runs. This recipe will teach you how to determine when memory is allocated by C++ and how to remove these allocations when possible. Understanding how to remove memory allocations is important because functions such as new(), delete(), malloc(), and free() are not only slow, but the memory they provide is also finite. Removing unneeded allocations not only improves the overall performance of your application, but it also helps to reduce its overall memory requirements.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset