{"id":12670,"date":"2015-10-26T10:41:27","date_gmt":"2015-10-26T14:41:27","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12670"},"modified":"2015-10-26T10:41:27","modified_gmt":"2015-10-26T14:41:27","slug":"dynamic-frameworks-and-app-launch-times","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/10\/26\/dynamic-frameworks-and-app-launch-times\/","title":{"rendered":"Dynamic Frameworks and App Launch Times"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/steipete\/status\/656954976309260290\">Peter Steinberger<\/a> links to this <a href=\"https:\/\/github.com\/artsy\/eigen\/issues\/586\">discussion<\/a> started by Eloy Dur&aacute;n. This gist of it is that dynamic linking can really slow down launches, especially before the cache is filled.<\/p>\n<p><a href=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-147504318\">Apple DTS<\/a>:<\/p>\n<blockquote cite=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-147504318\"><p>Beyond that, there is nothing more I can do for you at this time to make framework loading go faster. You can follow up on your bug report on bugreport.apple.com if you wish to know its status.<\/p><\/blockquote>\n<p><a href=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-147852459\">Javier Soto<\/a>:<\/p>\n<blockquote cite=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-147852459\"><p>An app I&rsquo;m working on has no more than 10 frameworks, and I&rsquo;m also seeing &gt;3s launch time slow-downs caused by this, and I hoped that the DTS would result in some workaround.<\/p><\/blockquote>\n<p><a href=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-150526553\">Eloy Dur&aacute;n<\/a>:<\/p>\n<blockquote cite=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-150526553\"><p>So it seems that static linkage is going to be the only pragmatic solution for the foreseeable future (dyld optimisations, if any, would probably take a while to make its way to us) and has been proven to work\/allowed.<\/p><\/blockquote>\n<p><a href=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-150556661\">Sam Marshall<\/a>:<\/p>\n<blockquote cite=\"https:\/\/github.com\/artsy\/eigen\/issues\/586#issuecomment-150556661\"><p>Due to having no guaranteed stable ABI, it seems extremely unwise to even think of using static libraries for swift.<\/p><\/blockquote>\n<p>Perviously: <a href=\"http:\/\/mjtsai.com\/blog\/2014\/01\/16\/ios-needs-frameworks\/\">iOS Needs Frameworks<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Peter Steinberger links to this discussion started by Eloy Dur&aacute;n. This gist of it is that dynamic linking can really slow down launches, especially before the cache is filled. Apple DTS: Beyond that, there is nothing more I can do for you at this time to make framework loading go faster. You can follow up [&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":[1307,466,205,31,904,1137,54,138,71,901],"class_list":["post-12670","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoapods","tag-codesigning","tag-dyld","tag-ios","tag-ios-8","tag-ios-9","tag-objective-c","tag-optimization","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12670","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=12670"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12670\/revisions"}],"predecessor-version":[{"id":12671,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12670\/revisions\/12671"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}