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.
Steps to reproduce:
Add a directory to your project that is a git repository or a subfolder of a git repository.
Open a file or create a new document in the same Atom session.
Switch to a different application.
Click back on Atom and wait for your input to be accepted.
When 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).
I ran the profiler during the task switching and I got the following data (rename the file to .json if necessary):
I am able to solve the issue only by removing the git folder from my project.
I’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.