{"id":275,"date":"2015-05-24T13:40:23","date_gmt":"2015-05-24T20:40:23","guid":{"rendered":"https:\/\/www.patrickfox.org\/articles\/?p=275"},"modified":"2026-03-17T18:23:59","modified_gmt":"2026-03-18T01:23:59","slug":"c-exception-handling-and-its-effect-on-real-world-performance-part-iii","status":"publish","type":"post","link":"https:\/\/www.patrickfox.org\/articles\/2015-05-24--c-exception-handling-and-its-effect-on-real-world-performance-part-iii\/","title":{"rendered":"C++ Exception Handling and It\u2019s Effect on Real World Performance, Part III"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"<p>In this installment, we look at the performance affects of throwing exceptions from object oriented code (namely, virtual functions), because any real world C++ code is likely going to use virtual functions frequently.  And virtual functions tend to preclude the same compiler optimizations that throwing exceptions does.<\/p>\n<p>And, once again, we find that throwing exceptions from virtual functions <em>DOES NOT<\/em> have a notable impact on runtime performance.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":0,"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patrickfox.org\/articles\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}