unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Improving Emacs performance on Cygwin
@ 2010-07-26 21:00 Ken Brown
  2010-07-26 21:56 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ken Brown @ 2010-07-26 21:00 UTC (permalink / raw)
  To: emacs-devel

I would like to apply the following patch, which seems to give a 
substantial performance improvement on Cygwin (and obviously has no 
effect on other platforms).

=== modified file 'src/dired.c'
--- src/dired.c 2010-07-25 00:20:51 +0000
+++ src/dired.c 2010-07-26 20:49:34 +0000
@@ -72,8 +72,7 @@
  #endif /* not MSDOS */
  #endif /* not SYSV_SYSTEM_DIR */

-/* Some versions of Cygwin don't have d_ino in `struct dirent'.  */
-#if defined(MSDOS) || defined(__CYGWIN__)
+#ifdef MSDOS
  #define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0)
  #else
  #define DIRENTRY_NONEMPTY(p) ((p)->d_ino)

This reverses a change made by Eli on 2006-01-27.  Rationale: The time 
when Cygwin didn't have d_ino in dirent was a brief period around 
December 2005, and it applied only to Cygwin 1.5.19, which has long been 
obsolete.

Any objections?  If not, I would apply it to the emacs-23 branch and let 
it propagate to the trunk.

Ken



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-07-29 20:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 21:00 Improving Emacs performance on Cygwin Ken Brown
2010-07-26 21:56 ` Stefan Monnier
2010-07-27  2:55 ` Eli Zaretskii
2010-07-27 11:07   ` Ken Brown
2010-07-27 17:07     ` Eli Zaretskii
2010-07-27 18:01       ` Ken Brown
2010-07-27 19:12         ` Chad Brown
2010-07-27 19:53           ` Ken Brown
2010-07-27 20:01 ` Davis Herring
2010-07-27 20:30   ` Ken Brown
2010-07-29 19:39   ` Bazar trouble Alessandro Madruga Correia
2010-07-29 20:26     ` Óscar Fuentes

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).