]> gitweb.factorcode.org Git - factor.git/commitdiff
vocabs.loader: actually use the root cache.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 24 Oct 2011 23:18:29 +0000 (16:18 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 24 Oct 2011 23:19:59 +0000 (16:19 -0700)
core/vocabs/loader/loader.factor

index 8f0974132e6e216ff7f88da4e9bd8370c1419bd9..20c71e06ddf06eec7d9fe18da677a88b48ad7f62 100644 (file)
@@ -56,8 +56,8 @@ ERROR: absolute-path-forbidden path ;
     "/" join ;
 
 : find-vocab-root ( vocab -- path/f )
-    vocab-name dup root-cache get at
-    [ ] [ ".factor" append-vocab-dir find-root-for ] ?if ;
+    vocab-name root-cache get
+    [ ".factor" append-vocab-dir find-root-for ] cache ;
 
 : vocab-append-path ( vocab path -- newpath )
     swap find-vocab-root dup [ prepend-path ] [ 2drop f ] if ;