{"id":280,"date":"2010-05-11T22:42:05","date_gmt":"2010-05-12T05:42:05","guid":{"rendered":"http:\/\/eriknovales.com\/blog\/index.php\/2010\/05\/11\/a-gross-overgeneralization\/"},"modified":"2010-05-11T22:42:05","modified_gmt":"2010-05-12T05:42:05","slug":"a-gross-overgeneralization","status":"publish","type":"post","link":"https:\/\/eriknovales.com\/?p=280","title":{"rendered":"A Gross Overgeneralization"},"content":{"rendered":"<p>From <a href=\"http:\/\/etoileos.com\/news\/archive\/2010\/04\/27\/2303\/\">David Chisnall<\/a>:<\/p>\n<blockquote>\n<p>If you find yourself optimizing your code, then it means that the author of your compiler has failed.<\/p>\n<\/blockquote>\n<p><font color=\"#555555\">This is just very, very untrue. Even if you strike algorithmic optimization from the picture, code optimization is still a very important and useful skill to have no matter what sort of programming you\u2019re doing. Knowing your target platform, knowing the behavior of your compiler or interpreter, and knowing your data (hat tip again to <a href=\"http:\/\/www.insomniacgames.com\/blogcast\/blog\/mike_acton\/1500756\">Mike Acton<\/a> for driving this point home to me) can provide you with ideas on how to transform your code and realize massive performance gains.<\/font><\/p>\n<p><font color=\"#555555\">If you\u2019re writing performance-critical code, no compiler is going to do everything for you \u2013 <a href=\"http:\/\/downloads.gamedev.net\/pdf\/gpbb\/gpbb1.pdf\">the best optimizer is still between your ears<\/a>. The idea that poorly-performing code can be blamed on the compiler is simply na\u00efve and defeatist.<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From David Chisnall: If you find yourself optimizing your code, then it means that the author of your compiler has failed. This is just very, very untrue. Even if you strike algorithmic optimization from the picture, code optimization is still a very important and useful skill to have no matter what sort of programming you\u2019re [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-development"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/eriknovales.com\/index.php?rest_route=\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eriknovales.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eriknovales.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eriknovales.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eriknovales.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=280"}],"version-history":[{"count":0,"href":"https:\/\/eriknovales.com\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions"}],"wp:attachment":[{"href":"https:\/\/eriknovales.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eriknovales.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eriknovales.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}