{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/9544","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/9544/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/9544/comments","events_url":"https://api.github.com/repos/atom/atom/issues/9544/events","html_url":"https://github.com/atom/atom/issues/9544","id":116573136,"number":9544,"title":"Atom is slow regaining focus on Windows 7 with git repo","user":{"login":"monkpit","id":5297293,"avatar_url":"https://avatars.githubusercontent.com/u/5297293?v=3","gravatar_id":"","url":"https://api.github.com/users/monkpit","html_url":"https://github.com/monkpit","followers_url":"https://api.github.com/users/monkpit/followers","following_url":"https://api.github.com/users/monkpit/following{/other_user}","gists_url":"https://api.github.com/users/monkpit/gists{/gist_id}","starred_url":"https://api.github.com/users/monkpit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkpit/subscriptions","organizations_url":"https://api.github.com/users/monkpit/orgs","repos_url":"https://api.github.com/users/monkpit/repos","events_url":"https://api.github.com/users/monkpit/events{/privacy}","received_events_url":"https://api.github.com/users/monkpit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/git","name":"git","color":"fef2c0"},{"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800"},{"url":"https://api.github.com/repos/atom/atom/labels/performance","name":"performance","color":"d4c5f9"},{"url":"https://api.github.com/repos/atom/atom/labels/windows","name":"windows","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-12T15:32:27Z","updated_at":"2016-03-08T07:41:00Z","closed_at":null,"body":"Atom has a delay of ~1 second to respond to input when re-focusing. Seems to only affect Atom when a project folder is in a git repository.\r\n\r\nSteps to reproduce:\r\nOpen Atom\r\nAdd a directory to your project that is a git repository or a subfolder of a git repository.\r\nOpen a file or create a new document in the same Atom session.\r\nSwitch to a different application.\r\nClick back on Atom and wait for your input to be accepted.\r\n\r\nWhen you click back on Atom there is a delay of 1~1.5 seconds before your action is performed (tab switch if you clicked a tab, cursor to start blinking if you clicked in the text of a document).\r\n\r\nI ran the profiler during the task switching and I got the following data (rename the file to .json if necessary):\r\n[TimelineRawData-20151112T091728.txt](https://github.com/atom/atom/files/32999/TimelineRawData-20151112T091728.txt)\r\n\r\nI am able to solve the issue only by removing the git folder from my project.\r\n\r\nI'm not versed in reading the profiling data but it looks like a call to `git-repository.js` is taking a lot of time up when the re-focus happens."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/193651225","html_url":"https://github.com/atom/atom/issues/9544#issuecomment-193651225","issue_url":"https://api.github.com/repos/atom/atom/issues/9544","id":193651225,"user":{"login":"lyweiwei","id":12581712,"avatar_url":"https://avatars.githubusercontent.com/u/12581712?v=3","gravatar_id":"","url":"https://api.github.com/users/lyweiwei","html_url":"https://github.com/lyweiwei","followers_url":"https://api.github.com/users/lyweiwei/followers","following_url":"https://api.github.com/users/lyweiwei/following{/other_user}","gists_url":"https://api.github.com/users/lyweiwei/gists{/gist_id}","starred_url":"https://api.github.com/users/lyweiwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyweiwei/subscriptions","organizations_url":"https://api.github.com/users/lyweiwei/orgs","repos_url":"https://api.github.com/users/lyweiwei/repos","events_url":"https://api.github.com/users/lyweiwei/events{/privacy}","received_events_url":"https://api.github.com/users/lyweiwei/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T07:41:00Z","updated_at":"2016-03-08T07:41:00Z","body":"@50Wliu the Atom version is 1.5.4, I just tried 1.6.0-beta7, it still repros"}}