From 1b775f07606e4ea946b07794ed60469f45f2f417 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Mon, 15 Aug 2005 17:44:49 +0000 Subject: [PATCH] 0.9.3.52: Reduce core file size by 600k+: * Disable FORMAT-with-constant-format-string transform in the cross compiler--eliminates many large LAMBDAs from the core; * Remove call to PURIFY at the beginning of warm init so that cold-init-only stuff doesn't get moved to read-only space before it is uninterned and (not) garbage collected. --- make-target-2.sh | 1 - src/compiler/srctran.lisp | 4 ++++ version.lisp-expr | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/make-target-2.sh b/make-target-2.sh index 19baf68..0155ac7 100644 --- a/make-target-2.sh +++ b/make-target-2.sh @@ -34,7 +34,6 @@ echo //doing warm init ;; Now that we use the compiler for macros, interpreted ;; /SHOW doesn't work until later in init. #+sb-show (print "/hello, world!") - (sb!ext:purify) ;; Until PRINT-OBJECT and other machinery is set up, ;; we want limits on printing to avoid infinite output. diff --git a/src/compiler/srctran.lisp b/src/compiler/srctran.lisp index 69bc5e1..f5e4293 100644 --- a/src/compiler/srctran.lisp +++ b/src/compiler/srctran.lisp @@ -3657,6 +3657,10 @@ (when (stringp x) (check-format-args x args 'format))))) +;;; We disable this transform in the cross-compiler to save memory in +;;; the target image; most of the uses of FORMAT in the compiler are for +;;; error messages, and those don't need to be particularly fast. +#+sb-xc (deftransform format ((dest control &rest args) (t simple-string &rest t) * :policy (> speed space)) (unless (constant-lvar-p control) diff --git a/version.lisp-expr b/version.lisp-expr index d6e582c..11cdec7 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.9.3.51" +"0.9.3.52" -- 1.7.10.4