{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/8918","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/8918/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/8918/comments","events_url":"https://api.github.com/repos/atom/atom/issues/8918/events","html_url":"https://github.com/atom/atom/issues/8918","id":108062592,"number":8918,"title":"Can take up to 10s for initial window to appear","user":{"login":"walles","id":158201,"avatar_url":"https://avatars.githubusercontent.com/u/158201?v=3","gravatar_id":"","url":"https://api.github.com/users/walles","html_url":"https://github.com/walles","followers_url":"https://api.github.com/users/walles/followers","following_url":"https://api.github.com/users/walles/following{/other_user}","gists_url":"https://api.github.com/users/walles/gists{/gist_id}","starred_url":"https://api.github.com/users/walles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walles/subscriptions","organizations_url":"https://api.github.com/users/walles/orgs","repos_url":"https://api.github.com/users/walles/repos","events_url":"https://api.github.com/users/walles/events{/privacy}","received_events_url":"https://api.github.com/users/walles/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/needs-reproduction","name":"needs-reproduction","color":"009800"},{"url":"https://api.github.com/repos/atom/atom/labels/performance","name":"performance","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-09-24T05:44:57Z","updated_at":"2016-05-02T09:43:50Z","closed_at":null,"body":"I'm using Atom 1.0.15 on OS X 10.10.4.\r\n\r\nSometimes when I start Atom from the command line as `atom .`, it is fast, as in that the initial window pops up inside of a second of me pressing return.\r\n\r\nSometimes, it takes about 10s from when I press return until the initial window pops up on screen.\r\n\r\nI don't know how to repro this reliably, but my findings so far are that:\r\n* This seems to happen when I already have an Atom running. First start of the process always seems fast.\r\n* The launch can be slow even if the `mdfind` part of the `atom` shell script returns immediately, so it's not `mdfind`.\r\n* I have a feeling the time until the window appears is *exactly* 10s when this happens, maybe something needs to time out for the startup to proceed?\r\n* Running with `--profile-startup` doesn't show anything being slow; it seems like the profiling starts after the 10 seconds of inactivity.\r\n* CPU load is (close to) zero during the 10 no-window seconds.\r\n* For me this has been an issue since pre-1.0, so this is not a regression.\r\n\r\nWhat can I do to figure out what Atom does between I press return and that the window appears?"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/216178241","html_url":"https://github.com/atom/atom/issues/8918#issuecomment-216178241","issue_url":"https://api.github.com/repos/atom/atom/issues/8918","id":216178241,"user":{"login":"walles","id":158201,"avatar_url":"https://avatars.githubusercontent.com/u/158201?v=3","gravatar_id":"","url":"https://api.github.com/users/walles","html_url":"https://github.com/walles","followers_url":"https://api.github.com/users/walles/followers","following_url":"https://api.github.com/users/walles/following{/other_user}","gists_url":"https://api.github.com/users/walles/gists{/gist_id}","starred_url":"https://api.github.com/users/walles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walles/subscriptions","organizations_url":"https://api.github.com/users/walles/orgs","repos_url":"https://api.github.com/users/walles/repos","events_url":"https://api.github.com/users/walles/events{/privacy}","received_events_url":"https://api.github.com/users/walles/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T09:43:50Z","updated_at":"2016-05-02T09:43:50Z","body":"In #3673 people worry about milliseconds, I call [luxury](https://www.youtube.com/watch?v=Xe1a1wHxTyo) :)"}}