{"id":6188,"date":"2012-09-29T19:11:43","date_gmt":"2012-09-30T00:11:43","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6188"},"modified":"2012-09-29T19:12:18","modified_gmt":"2012-09-30T00:12:18","slug":"optimizing-flood-fill","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/29\/optimizing-flood-fill\/","title":{"rendered":"Optimizing Flood Fill"},"content":{"rendered":"<p><a href=\"http:\/\/www.mikeash.com\/pyblog\/friday-qa-2012-09-28-optimizing-flood-fill.html\">Mike Ash<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.mikeash.com\/pyblog\/friday-qa-2012-09-28-optimizing-flood-fill.html\"><p>RAM, despite being officially &ldquo;random access,&rdquo; isn&rsquo;t truly random access these days. Modern computer memory is a complex hierarchical system which is optimized for common access patterns. Truly random access is quite slow compared to linearly reading or writing a long, contiguous chunk of memory.<\/p>\n<p>When it comes to manipulating an image, this means that you always want to write code that iterates over <code>x<\/code> in the inner loop&#8230;<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Mike Ash: RAM, despite being officially &ldquo;random access,&rdquo; isn&rsquo;t truly random access these days. Modern computer memory is a complex hierarchical system which is optimized for common access patterns. Truly random access is quite slow compared to linearly reading or writing a long, contiguous chunk of memory. When it comes to manipulating an image, this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[54,138,71],"class_list":["post-6188","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-objective-c","tag-optimization","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6188"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6188\/revisions"}],"predecessor-version":[{"id":6190,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6188\/revisions\/6190"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}