]> gitweb.factorcode.org Git - factor.git/commitdiff
io.streams.string: inline <string-writer> so with-string-writer is faster.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 11 Feb 2014 04:46:25 +0000 (20:46 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 11 Feb 2014 04:46:25 +0000 (20:46 -0800)
basis/io/streams/string/string.factor

index e9ee4cb204d67aaf27a2b0bc1939fccf0d9b027c..f27e308326b0c75bcd07341ad2d5438b97580160 100644 (file)
@@ -35,7 +35,7 @@ PRIVATE>
 M: sbuf stream-element-type drop +character+ ;
 
 : <string-writer> ( -- stream )
-    512 <sbuf> ;
+    512 <sbuf> ; inline
 
 : with-string-writer ( quot -- str )
     <string-writer> [