.asd: add compression to build image, at the expense of start-up time now 0.40s

do we want choices? Both a 100MB binary that starts-up instantly AND
this one, 28MB, starts-up in 0.40s.
This commit is contained in:
vindarel 2025-01-17 17:56:08 +01:00
parent ee7e64d014
commit c191b70d2c

View file

@ -200,3 +200,9 @@
;;; This defines ciel.asd. It is enough to quickload CIEL. ;;; This defines ciel.asd. It is enough to quickload CIEL.
;;; But to build a binary, ;;; But to build a binary,
;;; see build-config.lisp for extra config. ;;; see build-config.lisp for extra config.
;; build a smaller executable with SBCL's core compression:
;; from 119MB to 28MB, however startup time increases from 0.02 to 0.35s (noticeable).
#+sb-core-compression
(defmethod asdf:perform ((o asdf:image-op) (c asdf:system))
(uiop:dump-image (asdf:output-file o c) :executable t :compression t))