{"id":29483,"date":"2006-10-03T10:00:00","date_gmt":"2006-10-03T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2006\/10\/03\/theres-a-reason-why-envelopes-have-backs\/"},"modified":"2006-10-03T10:00:00","modified_gmt":"2006-10-03T10:00:00","slug":"theres-a-reason-why-envelopes-have-backs","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20061003-00\/?p=29483","title":{"rendered":"There&#039;s a reason why envelopes have backs"},"content":{"rendered":"<p>For some reason, people are upset that <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2006\/04\/19\/578991.aspx#580805\">I don&#8217;t have hard data for the cost difference between &#8220;slow&#8221; and &#8220;fast&#8221; mode enumeration<\/a>. I already did <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2006\/04\/07\/570801.aspx\">a back-of-the-envelope calculation<\/a> that showed that fast mode reduces the total time to enumerate the items in a folder from five minutes to two seconds. That&#8217;s what&#8217;s so great about back-of-the-envelope calculations: They let you make decisions <strong>without actually having to implement every possible solution<\/strong>.\nSome quick estimation shows that using slow mode enumeration would be 200 times slower than fast mode. Does it really matter whether the speed-up is 195.1231 times or even 103.4761 times? Even if the estimate were off by an order of magnitude, a 20-fold speed-up is still worth it.\nImagine if people had to carry out experiments for every possible optimization (both before and after) to prove that it was worthwhile.\n&#8220;Could you please deliver these letters?&#8221;\n&#8220;Sure, here let me grab them.&#8221;\n&#8220;Why are you doing that? Why don&#8217;t you take one letter at a time?&#8221;\n&#8220;Um, because it&#8217;ll be faster to take all of them at once so I don&#8217;t have to keep coming back here.&#8221;<\/p>\n<p>&#8220;Do you have any hard data to support that? I&#8217;m not going to believe you until you show me some hard data.&#8221; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason, people are upset that I don&#8217;t have hard data for the cost difference between &#8220;slow&#8221; and &#8220;fast&#8221; mode enumeration. I already did a back-of-the-envelope calculation that showed that fast mode reduces the total time to enumerate the items in a folder from five minutes to two seconds. That&#8217;s what&#8217;s so great about [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-29483","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>For some reason, people are upset that I don&#8217;t have hard data for the cost difference between &#8220;slow&#8221; and &#8220;fast&#8221; mode enumeration. I already did a back-of-the-envelope calculation that showed that fast mode reduces the total time to enumerate the items in a folder from five minutes to two seconds. That&#8217;s what&#8217;s so great about [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/29483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=29483"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/29483\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=29483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=29483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=29483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}