{"action":"created","issue":{"url":"https://api.github.com/repos/SVGKit/SVGKit/issues/465","repository_url":"https://api.github.com/repos/SVGKit/SVGKit","labels_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/465/comments","events_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/465/events","html_url":"https://github.com/SVGKit/SVGKit/pull/465","id":171018227,"number":465,"title":"Fix for noticable performance hit due to fonts loading","user":{"login":"RenGate","id":8874275,"avatar_url":"https://avatars.githubusercontent.com/u/8874275?v=3","gravatar_id":"","url":"https://api.github.com/users/RenGate","html_url":"https://github.com/RenGate","followers_url":"https://api.github.com/users/RenGate/followers","following_url":"https://api.github.com/users/RenGate/following{/other_user}","gists_url":"https://api.github.com/users/RenGate/gists{/gist_id}","starred_url":"https://api.github.com/users/RenGate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RenGate/subscriptions","organizations_url":"https://api.github.com/users/RenGate/orgs","repos_url":"https://api.github.com/users/RenGate/repos","events_url":"https://api.github.com/users/RenGate/events{/privacy}","received_events_url":"https://api.github.com/users/RenGate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-13T17:19:44Z","updated_at":"2016-08-13T19:30:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SVGKit/SVGKit/pulls/465","html_url":"https://github.com/SVGKit/SVGKit/pull/465","diff_url":"https://github.com/SVGKit/SVGKit/pull/465.diff","patch_url":"https://github.com/SVGKit/SVGKit/pull/465.patch"},"body":"When `UIViewControllers` that contain `SVGKLayeredImageView` are instantiated from Storyboards, a no image placeholder is automatically set during instantiation and a font used to render \"Missing SVG\" is loaded using `CTFontCreateWithName`.\r\nBecause `UIViewControllers` are usually instantiated during transition, such font loading causes noticeable lag and makes user experience worse. During testing using Time Profiler on iPhone 5s (iOS 9.3.3) I found out that such font loading increased the view controller loading time by 2 seconds. After removal of text layers from placeholder image, instantiation time dropped to usual 0.4 s."},"comment":{"url":"https://api.github.com/repos/SVGKit/SVGKit/issues/comments/239637539","html_url":"https://github.com/SVGKit/SVGKit/pull/465#issuecomment-239637539","issue_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/465","id":239637539,"user":{"login":"RenGate","id":8874275,"avatar_url":"https://avatars.githubusercontent.com/u/8874275?v=3","gravatar_id":"","url":"https://api.github.com/users/RenGate","html_url":"https://github.com/RenGate","followers_url":"https://api.github.com/users/RenGate/followers","following_url":"https://api.github.com/users/RenGate/following{/other_user}","gists_url":"https://api.github.com/users/RenGate/gists{/gist_id}","starred_url":"https://api.github.com/users/RenGate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RenGate/subscriptions","organizations_url":"https://api.github.com/users/RenGate/orgs","repos_url":"https://api.github.com/users/RenGate/repos","events_url":"https://api.github.com/users/RenGate/events{/privacy}","received_events_url":"https://api.github.com/users/RenGate/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T19:30:07Z","updated_at":"2016-08-13T19:30:07Z","body":"Sounds good.\r\nI've added the outlined text and placed the macro check, so now we can disable placeholders on `SVGKLayeredImageView` by adding preprocessor macro in build settings."}}
{"actor":{"display_login":"RenGate"}}