]> gitweb.factorcode.org Git - factor.git/commitdiff
sorting.quick: speedup by inline sort!.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jun 2015 03:44:26 +0000 (20:44 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jun 2015 03:44:26 +0000 (20:44 -0700)
extra/sorting/quick/quick.factor

index 38ee1b96273353e21e47834a52eed9377042c4d0..819fd59beb6c3af8c1b5b33d52e4cccb938a41ca 100644 (file)
@@ -36,7 +36,7 @@ IN: sorting.quick
 PRIVATE>
 
 : sort! ( seq quot: ( obj1 obj2 -- <=> ) -- )
-    [ 0 over length 1 - ] dip quicksort ;
+    [ 0 over length 1 - ] dip quicksort ; inline
 
 : sort-with! ( seq quot: ( elt -- key ) -- )
     [ compare ] curry sort! ; inline