From 9c40cb4a05ba3730083964deda74cde1002f41c4 Mon Sep 17 00:00:00 2001 From: sheeple Date: Fri, 28 Nov 2008 01:14:33 -0600 Subject: [PATCH] Tree-shaker now merges wrappers; saves a few kb --- basis/tools/deploy/shaker/shaker.factor | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/basis/tools/deploy/shaker/shaker.factor b/basis/tools/deploy/shaker/shaker.factor index a537d37d11..00cee32ddb 100755 --- a/basis/tools/deploy/shaker/shaker.factor +++ b/basis/tools/deploy/shaker/shaker.factor @@ -343,6 +343,9 @@ IN: tools.deploy.shaker : compress-strings ( -- ) [ string? ] [ ] "strings" compress ; +: compress-wrappers ( -- ) + [ wrapper? ] [ ] "wrappers" compress ; + : finish-deploy ( final-image -- ) "Finishing up" show >r { } set-datastack r> @@ -391,7 +394,8 @@ SYMBOL: deploy-vocab r> strip-words compress-byte-arrays compress-quotations - compress-strings ; + compress-strings + compress-wrappers ; : (deploy) ( final-image vocab config -- ) #! Does the actual work of a deployment in the slave