On Mon, Mar 29, 2010 at 19:14, Jon TURNEY <jon.tur...@dronecode.org.uk> wrote: > On 29/03/2010 11:33, Dan Tsafrir wrote: >> >> After I've upgraded to cygwin-1.7 my emacs takes 30-40 seconds to >> open. Following >> http://x.cygwin.com/docs/faq/cygwin-x-faq.html#poor-performance, >> disabling my antivirus has no affect on emacs's opening time. As far >> as I can tell other X programs behave similarly to the way they did >> before the upgrade. Any help would be appreciated. The output of >> 'cygcheck -s -v -r' is attached. > > LANG = 'C.UTF-8' > > You are probably being bitten by [1] > > [1] http://sourceware.org/bugzilla/show_bug.cgi?id=10948
I confirm the symptom described in [1] happening when I invoke emacs-x11; namely, emacs-x11 indeed consumes a lot of CPU upon startup. But, alas, the workarounds you suggest don't solve the problem. Specifically: > As far as I can tell, this is a general problem with X, but cygwin > unfortunately encounters it in a default install because (a) the default > locale is a UTF-8 locale, and (b) we don't install the CJK fonts by default. > > Workarounds you might try are (a) install the font packages font-isas-misc, > font-jis-misc and font-daewoo-misc (and restart your server), As can be seen in the cygcheck.out I've attached to my initial email, these fonts were/are already installed in my system: font-isas-misc 1.0.1-1 font-jis-misc 1.0.1-1 font-daewoo-misc 1.0.1-1 (In fact, I've installed all the available fonts in cygwin setup.) > or (b) set your locale to a non-UTF-8 one. I've conducted a few repeated measurements and it looks as though setting LANG to be en_US somewhat reduces the start time of emacs-x11: instead of ~30 seconds with LANG=C.UTF-8, it take ~27 seconds LANG=en_US. While this is ~10% less, waiting 27 seconds for emacs to open still seems unreasonable. Any other ideas? Thanks, --Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/