X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcold%2Fshared.lisp;h=20401a4ba0a44282a64d36f6bacd452fde6fe631;hb=d7f6139a91d7d9b0667a597584ae306d958bb2f4;hp=3c910ac7e1ffe58b2bddb40cdf0eef83ba4e6033;hpb=f2aa2d01b8d69f1c7bff18f86279d4f1018fe127;p=sbcl.git diff --git a/src/cold/shared.lisp b/src/cold/shared.lisp index 3c910ac..20401a4 100644 --- a/src/cold/shared.lisp +++ b/src/cold/shared.lisp @@ -21,11 +21,18 @@ ;;; needing collection and copying; when the application involved is ;;; the SBCL compiler, it doesn't take any longer to collect 20Mb than ;;; 2 -dan, 20000819 - -#+sbcl +;;; +;;; Actually, tweaking *BYTES-CONSED-BETWEEN-GCS* to 20Mb instead of +;;; the default 2 seemed to make SBCL rebuild O(25%) faster on my 256 +;;; Mb K6/3, so I think it does have some effect on X86/GENCGC. I +;;; haven't looked into why this would be, though. Also, I'm afraid +;;; that using 20Mb here might be unfriendly to people using more-reasonable +;;; machines (like old laptops with 48Mb of memory..) so I've +;;; suppressed this tweak except for Alpha. -- WHN 2001-05-11 +#+(and sbcl alpha) ; SBCL/Alpha uses stop-and-copy, and Alphas have lotso RAM. (progn (sb-ext:gc-off) - (setf sb-KERNEL::*bytes-consed-between-gcs* (* 20 (expt 10 6))) + (setf sb-kernel::*bytes-consed-between-gcs* (* 20 (expt 10 6))) (sb-ext:gc-on) (sb-ext:gc))