{"action":"created","issue":{"url":"https://api.github.com/repos/domokit/mojo/issues/405","labels_url":"https://api.github.com/repos/domokit/mojo/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/domokit/mojo/issues/405/comments","events_url":"https://api.github.com/repos/domokit/mojo/issues/405/events","html_url":"https://github.com/domokit/mojo/issues/405","id":104171874,"number":405,"title":"Starting a DartApp should be faster","user":{"login":"tonygentilcore","id":1731736,"avatar_url":"https://avatars.githubusercontent.com/u/1731736?v=3","gravatar_id":"","url":"https://api.github.com/users/tonygentilcore","html_url":"https://github.com/tonygentilcore","followers_url":"https://api.github.com/users/tonygentilcore/followers","following_url":"https://api.github.com/users/tonygentilcore/following{/other_user}","gists_url":"https://api.github.com/users/tonygentilcore/gists{/gist_id}","starred_url":"https://api.github.com/users/tonygentilcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonygentilcore/subscriptions","organizations_url":"https://api.github.com/users/tonygentilcore/orgs","repos_url":"https://api.github.com/users/tonygentilcore/repos","events_url":"https://api.github.com/users/tonygentilcore/events{/privacy}","received_events_url":"https://api.github.com/users/tonygentilcore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"johnmccutchan","id":224266,"avatar_url":"https://avatars.githubusercontent.com/u/224266?v=3","gravatar_id":"","url":"https://api.github.com/users/johnmccutchan","html_url":"https://github.com/johnmccutchan","followers_url":"https://api.github.com/users/johnmccutchan/followers","following_url":"https://api.github.com/users/johnmccutchan/following{/other_user}","gists_url":"https://api.github.com/users/johnmccutchan/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmccutchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmccutchan/subscriptions","organizations_url":"https://api.github.com/users/johnmccutchan/orgs","repos_url":"https://api.github.com/users/johnmccutchan/repos","events_url":"https://api.github.com/users/johnmccutchan/events{/privacy}","received_events_url":"https://api.github.com/users/johnmccutchan/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-09-01T02:31:26Z","updated_at":"2015-09-10T17:42:54Z","closed_at":null,"body":"@alhaad and I were noticing that on an android device the first dart snapshot to load in the dart content handler takes about 500ms and subsequent take about 200ms between the time the `DartApp` is created and the first line of the main() method.\r\n\r\nI added traces to everything in `mojo/dart/embedder/dart_controller.cc` and found that the first invocation spends its time in `BlockForServiceIsolateLocked` and all the subsequent ones spend their time in `CreateIsolateHelper` (mostly in `PrepareIsolateLibraries` below that).\r\n\r\n/cc @qsr @johnmccutchan @zanderso \r\n\r\nTrace:\r\nhttps://drive.google.com/a/google.com/file/d/0B4R5tpZiLsHzb2FjYjhsVk90a0E/view"},"comment":{"url":"https://api.github.com/repos/domokit/mojo/issues/comments/139321927","html_url":"https://github.com/domokit/mojo/issues/405#issuecomment-139321927","issue_url":"https://api.github.com/repos/domokit/mojo/issues/405","id":139321927,"user":{"login":"zanderso","id":6343103,"avatar_url":"https://avatars.githubusercontent.com/u/6343103?v=3","gravatar_id":"","url":"https://api.github.com/users/zanderso","html_url":"https://github.com/zanderso","followers_url":"https://api.github.com/users/zanderso/followers","following_url":"https://api.github.com/users/zanderso/following{/other_user}","gists_url":"https://api.github.com/users/zanderso/gists{/gist_id}","starred_url":"https://api.github.com/users/zanderso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanderso/subscriptions","organizations_url":"https://api.github.com/users/zanderso/orgs","repos_url":"https://api.github.com/users/zanderso/repos","events_url":"https://api.github.com/users/zanderso/events{/privacy}","received_events_url":"https://api.github.com/users/zanderso/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T17:42:54Z","updated_at":"2015-09-10T17:42:54Z","body":"@iposva-google as for PrepareIsolateLibraries, do you have any sense if it would help to try to consolidate to have fewer calls to Dart_Invoke and Dart_SetField? Are those crossings expensive?"}}