]> gitweb.factorcode.org Git - factor.git/commitdiff
Tree-shaker now merges wrappers; saves a few kb
authorsheeple <sheeple@oberon.local>
Fri, 28 Nov 2008 07:14:33 +0000 (01:14 -0600)
committersheeple <sheeple@oberon.local>
Fri, 28 Nov 2008 07:14:33 +0000 (01:14 -0600)
basis/tools/deploy/shaker/shaker.factor

index a537d37d11448e660b29360e260766e8f20a20be..00cee32ddb18b3a65aedb69c4191f7372a97bc94 100755 (executable)
@@ -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