{"id":4804,"date":"2014-03-30T15:32:07","date_gmt":"2014-03-30T15:32:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/net-memory-consumption-question-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:32:07","modified_gmt":"2014-03-30T15:32:07","slug":"net-memory-consumption-question-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/net-memory-consumption-question-collection-of-common-programming-errors\/","title":{"rendered":".NET Memory Consumption Question-Collection of common programming errors"},"content":{"rendered":"<p>The compiler will generate IL that&#8217;s equivalent to version 2 of your code, a virtual stack location is needed to store the object reference. The JIT optimizer will generate machine code that&#8217;s equivalent to version 1 of your code, the reference is stored in a CPU register.<\/p>\n<p>In other words, it doesn&#8217;t matter. You get the exact same machine code at runtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The compiler will generate IL that&#8217;s equivalent to version 2 of your code, a virtual stack location is needed to store the object reference. The JIT optimizer will generate machine code that&#8217;s equivalent to version 1 of your code, the reference is stored in a CPU register. In other words, it doesn&#8217;t matter. You get [&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-4804","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4804","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=4804"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4804\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}