{"id":4003,"date":"2014-03-30T07:05:22","date_gmt":"2014-03-30T07:05:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/can-c-memory-leaks-negatively-affect-cpu-usage-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:05:22","modified_gmt":"2014-03-30T07:05:22","slug":"can-c-memory-leaks-negatively-affect-cpu-usage-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/can-c-memory-leaks-negatively-affect-cpu-usage-collection-of-common-programming-errors\/","title":{"rendered":"Can C++ memory leaks negatively affect CPU usage?-Collection of common programming errors"},"content":{"rendered":"<p>Disposing of previously allocated memory fragments should be relatively faster than their allocation and (as long as memory leak means <em>&#8220;memory lost due to missing deallocation call&#8221;) it shouldn&#8217;t really affect your speed, only overall memory usage.<\/em><\/p>\n<p>Although if you allocate huge amounts of memory every second and don&#8217;t do proper deallocations, this could be the problem. <em>I had the same issue when wrongly compiled <code>gtkmm<\/code> + <code>librsvg<\/code> leaked ~5 megabytes per second on screen redraw and that, of course, had some notable performance impact.<\/em><\/p>\n<p>Of course, this doesn&#8217;t mean you shouldn&#8217;t eliminate your memory leaks if you know that they exist. Memory leaks could cause something more serious than performance troubles.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Disposing of previously allocated memory fragments should be relatively faster than their allocation and (as long as memory leak means &#8220;memory lost due to missing deallocation call&#8221;) it shouldn&#8217;t really affect your speed, only overall memory usage. Although if you allocate huge amounts of memory every second and don&#8217;t do proper deallocations, this could be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4003","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4003"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4003\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}