Emacs 23.1.50.1在Windows XP上悬挂6-8秒 [英] Emacs 23.1.50.1 hangs ramdomly for 6-8 seconds on Windows XP

查看:184
本文介绍了Emacs 23.1.50.1在Windows XP上悬挂6-8秒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的Windows XP机器上的EmacsW32 23.1.50.1 emacs。它随机挂起5到8秒,非常令人沮丧。



任何一个有解决方案?



我甚至尝试使用gnu ftp网站的emacs win32二进制文件(23.1)这也挂了几秒钟。



这里有一些值得注意的进程监控器日志



10:56:59.9888359 PM CreateFile C:\usr\spool\mail\ PATH NOT FOUND 所需的访问:读取数据/列表目录,同步,处理:打开,选项:目录,同步IO非警报,属性:n / a,ShareMode:读取,写入,分配大小:n / a



10:57:55.5073038 PM QueryAllInformationFile C:\emacs.emacs.d\auto-save-list BUFFER OVERFLOW 创建时间:8/27/2009 12:51:26 PM,LastAccessTime:1/5/2010 10:54: 40 PM,LastWriteTime:1/5/2010 10:08:15 PM,ChangeTime:1/5/2010 10:08:15 PM,FileAttributes:D,AllocationSize:0,EndOfFile:0,NumberOfLinks:1,DeletePending:False ,Directory:True,IndexNumber:0x1000000001f702,EaSize:0,访问:读取属性,同步,位置:0,模式:同步IO非警报,对齐要求:Word

解决方案

我完全一样在WinXP上使用EmacsW32 23.1.50的问题。我所做的一个改变(对我来说)是将以下内容添加到我的 .emacs 文件中:

 ;尝试提高窗口的性能。 
(setq w32-get-true-file-attributes nil)

看起来这个变量相对最近更改为默认为true,并且已知会导致文件访问周围的一些减速问题。我现在还是有一些随机的挂起(可能是因为我的 .emacs customisations),但现在好多了。


I have EmacsW32 23.1.50.1 emacs working on my windows XP machine. It hangs randomly for 5 to 8 seconds and quite frustrating.

Any one has solution?

I even tried using emacs win32 binaries (23.1) from gnu ftp site and that also hangs for few seconds.

Here some notable processmonitor logs

10:56:59.9888359 PM CreateFile C:\usr\spool\mail\ PATH NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a

10:57:55.5073038 PM QueryAllInformationFile C:\emacs.emacs.d\auto-save-list BUFFER OVERFLOW CreationTime: 8/27/2009 12:51:26 PM, LastAccessTime: 1/5/2010 10:54:40 PM, LastWriteTime: 1/5/2010 10:08:15 PM, ChangeTime: 1/5/2010 10:08:15 PM, FileAttributes: D, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: True, IndexNumber: 0x1000000001f702, EaSize: 0, Access: Read Attributes, Synchronize, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Word

解决方案

I had exactly the same problem using EmacsW32 23.1.50 on WinXP. One change I made that had a significant improvement (for me anyway) was to add the following to my .emacs file:

; try to improve slow performance on windows.
(setq w32-get-true-file-attributes nil)

It seems this variable was changed to default to "true" relatively recently and is known to cause some slow-down problems around file access. I still get some random hangs now and then (probably due to my .emacs customisations) but it is much better now.

这篇关于Emacs 23.1.50.1在Windows XP上悬挂6-8秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆