This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: `run emacs' in win32 console cause bad emacs performance


Haojun Bao <baohaojun@gmail.com> writes:

> Ken Brown <kbrown@cornell.edu> writes:
>
>> On 7/3/2009 12:43 PM, Haojun Bao wrote:
>> [empty message with attachment]
>>
>> Was this supposed to be a reply to my request for more information?
>> I'll repeat what I said:
>>
>>> I can't reproduce this, but you haven't really given enough details.
>>> I don't know if you're using cygwin 1.5 or 1.7, or which version of
>>> emacs you're running, or....
>>>
>>>   http://cygwin.com/problems.html
>>>   http://www.catb.org/~esr/faqs/smart-questions.html
>>
>> Please look at those two links and follow the guidelines for reporting
>> a problem.
>
> ...
> 3. In the emacs window, move cursor up/down, take a note it's speed, and
> run:
>    $ps aux|grep emacs
>    $ls -l /proc/3804/fd/  #3804 is the emacs pid
> Here's the output:
>    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 0 -> socket:[1584]=
>
> ...
> a3. In the emacs window, move cursor up/down, I can see it's smoother
> this time.  It's reproducible on my PCs both at home/office. And the fd
> list:
>    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 0 -> /dev/console
>    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 1 -> /dev/console
>    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 2 -> /dev/console
>    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 3 -> socket:[1612]=
>

hi, I have simplified the test case a bit. Wrote 2 .py files, one I get
 slow emacs, the other I get normal(smooth) emacs:

$cat slow.py
#!/bin/python 
import os
os.close(0)
os.close(1)
os.close(2)
#must make sure X server is running already, or else this doesn't show
#anything, even no -nw version of emacs. my /bin/emacs is alternative to
#/usr/bin/emacs-X11
os.system("emacs -q")

$cat fast.py
#!/bin/python
import os
os.system("emacs -q")

(And my original problem is `run emacs' in cygwin.bat console will cause
emacs slow, and I observed there's only one fd (socket to X) open for
the emacs process started this way; no stdin/out/err).

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]