Cygwin slow start up: the culprit discovered!
If you’ve found the start-up time of Cygwin slowing down significantly after you’ve upgraded from 1.5 to 1.7, here’s a one liner to improve it around 500%:
1 | $ mv /etc/profile.d/bash_completion.sh{,.disabled} |
The bash_completion is apparently undergoing some massive restructure. The fact that fork is very inefficient on Windows (Windows’ inferior process model can’t really handle that, Cygwin did a great job mimicking it) make it not really ready for prime time on Cygwin.
You can still get bash_completion manually if you need it:
1 | $ . /etc/bash_completion |