diff options
author | Teddy Wing | 2021-02-14 23:34:53 +0100 |
---|---|---|
committer | Teddy Wing | 2021-02-14 23:34:53 +0100 |
commit | 6d2c19203913f859d82cc929a18e2784003b3a84 (patch) | |
tree | d0469c28639ef51b1872d421aa4d93107500e2c0 /l | |
parent | 8b0cde317fc3f151bd390b3bca9250deaded784c (diff) | |
download | extreload-6d2c19203913f859d82cc929a18e2784003b3a84.tar.bz2 |
extreload.asd: Compress SBCL executable
The default executable compiled by SBCL is huge. Copied code from:
https://lispcookbook.github.io/cl-cookbook/scripting.html#building-a-smaller-binary-with-sbcls-core-compression
to produce a smaller executable.
Here's the size comparison:
$ du -hs extreload*
11M extreload-ecl
58M extreload-sbcl
15M extreload-sbcl-compressed
Diffstat (limited to 'l')
-rw-r--r-- | l/extreload.asd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/l/extreload.asd b/l/extreload.asd index 2748eee..96e076e 100644 --- a/l/extreload.asd +++ b/l/extreload.asd @@ -19,3 +19,7 @@ :build-operation "program-op" :build-pathname "extreload" :entry-point "extreload:main") + +#+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)) |