[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src/s msdos.h
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs/src/s msdos.h |
Date: |
Fri, 30 Oct 2009 10:54:30 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Eli Zaretskii <eliz> 09/10/30 10:54:30
Modified files:
src/s : msdos.h
Log message:
(SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/s/msdos.h?cvsroot=emacs&r1=1.60&r2=1.61
Patches:
Index: msdos.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/s/msdos.h,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -b -r1.60 -r1.61
--- msdos.h 8 Jan 2009 03:16:21 -0000 1.60
+++ msdos.h 30 Oct 2009 10:54:30 -0000 1.61
@@ -193,14 +193,22 @@
/* Define one of these for easier conditionals. */
#ifdef HAVE_X_WINDOWS
-/* We need a little extra space, see ../../lisp/loadup.el. */
-#define SYSTEM_PURESIZE_EXTRA 15000
+/* We need a little extra space, see ../../lisp/loadup.el and the
+ commentary below, in the non-X branch. The 140KB number was
+ measured on GNU/Linux and on MS-WIndows. */
+#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
#define LIBX11_SYSTEM -lxext -lsys
#else
-/* We may need a little extra space, see ../../lisp/loadup.el. As of
- 20081010, 1193600 bytes are used at dump time, which is even less
- than BASE_PURESIZE. So the extra below is just paranoia. */
-#define SYSTEM_PURESIZE_EXTRA 10000
+/* We need a little extra space, see ../../lisp/loadup.el.
+ As of 20091024, DOS-specific files use up 62KB of pure space. But
+ overall, we end up wasting 130KB of pure space, because
+ BASE_PURESIZE starts at 1.47MB, while we need only 1.3MB (including
+ non-DOS specific files and load history; the latter is about 55K,
+ but depends on the depth of the top-level Emacs directory in the
+ directory tree). Given the unknown policy of different DPMI
+ hosts regarding loading of untouched pages, I'm not going to risk
+ enlarging Emacs footprint by another 100+ KBytes. */
+#define SYSTEM_PURESIZE_EXTRA (-170000+65000)
#endif
/* Tell the garbage collector that setjmp is known to save all
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/src/s msdos.h,
Eli Zaretskii <=