{"id":2729,"date":"2015-04-25T16:40:58","date_gmt":"2015-04-25T21:40:58","guid":{"rendered":"http:\/\/mikeconley.ca\/blog\/?p=2729"},"modified":"2023-12-20T16:25:11","modified_gmt":"2023-12-20T21:25:11","slug":"things-ive-learned-this-week-april-20-april-24-2015","status":"publish","type":"post","link":"https:\/\/mikeconley.ca\/blog\/2015\/04\/25\/things-ive-learned-this-week-april-20-april-24-2015\/","title":{"rendered":"Things I&#8217;ve Learned This Week (April 20 &#8211; April 24, 2015)"},"content":{"rendered":"<p>Short one this week. I must not have learned much! \ud83d\ude00<\/p>\n<h2>If you&#8217;re using Sublime Text to hack on Firefox or Gecko, make sure it&#8217;s not indexing your objdir.<\/h2>\n<p>Sublime has this wicked cool feature that lets you quickly search for files within your project folders. On my MBP, the shortcut is Cmd-P. It&#8217;s probably something like Ctrl-P on Windows and Linux.<\/p>\n<p>That feature is awesome, because when I need to get to a file, instead of searching the folder hierarchy, I just hit Cmd-P, jam in a few of the characters (they can even be out of order &#8211; Sublime does fuzzy matching), and then as soon as my desired file is the top entry, just hit Enter, and BLAM &#8211; opened file. It really saves time!<\/p>\n<p>At least, it saves time in theory. I noticed that sometimes, I&#8217;d hit Cmd-P, and the UI to enter my search string would take ages to show up. I had no idea why.<\/p>\n<p>Then I noticed that this slowness seemed to show up after I had done a build. My objdir resides beneath my srcdir (as is the defaults with a mozilla-central checkout), so I figured perhaps Sublime was trying to index all of those binaries and choking on them.<\/p>\n<p>I went to Project &gt; Edit Project, and added this to the configuration file that opened:<\/p>\n<pre>{\r\n\u00a0\u00a0 \u00a0\"folders\":\r\n\u00a0\u00a0 \u00a0[\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0{\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\"path\": \"\/Users\/mikeconley\/Projects\/mozilla-central\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 \"folder_exclude_patterns\": [\"*.sublime-workspace\", \"obj-*\"]\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0}\r\n\u00a0\u00a0 \u00a0]\r\n}<\/pre>\n<p>I added the workspace thing too<sup id=\"rf1-2729\"><a href=\"#fn1-2729\" title=\"That&#8217;s where Sublime holds my session state for my project.\" rel=\"footnote\">1<\/a><\/sup>, because I figure it&#8217;s unlikely I&#8217;ll ever want to open that thing.<\/p>\n<p>Anyhow, after setting that, I restarted Sublime, and everything was crazy-fast. \\o\/<\/p>\n<p>If you&#8217;re using Sublime, and your objdir is under your srcdir, maybe consider adding the same thing. Even if you&#8217;re not using Cmd-P, it&#8217;ll probably save your machine from needlessly burning cycles indexing stuff.<\/p>\n<hr class=\"footnotes\"><ol class=\"footnotes\" style=\"list-style-type:decimal\"><li id=\"fn1-2729\"><p >That&#8217;s where Sublime holds my session state for my project.&nbsp;<a href=\"#rf1-2729\" class=\"backlink\" title=\"Return to footnote 1.\">&#8617;<\/a><\/p><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>Short one this week. I must not have learned much! \ud83d\ude00 If you&#8217;re using Sublime Text to hack on Firefox or Gecko, make sure it&#8217;s not indexing your objdir. Sublime has this wicked cool feature that lets you quickly search for files within your project folders. On my MBP, the shortcut is Cmd-P. It&#8217;s probably [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[874,861,110,6],"tags":[125,1018,1161,35,1052,1160,1159,1158],"class_list":["post-2729","post","type-post","status-publish","format-standard","hentry","category-firefox-mozilla-2","category-mozilla-2","category-musings","category-personal","tag-firefox","tag-gecko","tag-indexing","tag-mozilla","tag-perf","tag-slow","tag-sublime","tag-sublimetext"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/prmTy-I1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/posts\/2729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/comments?post=2729"}],"version-history":[{"count":2,"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/posts\/2729\/revisions"}],"predecessor-version":[{"id":2731,"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/posts\/2729\/revisions\/2731"}],"wp:attachment":[{"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/media?parent=2729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/categories?post=2729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikeconley.ca\/blog\/wp-json\/wp\/v2\/tags?post=2729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}