Skip to content

Commit

Permalink
[c.s.n-a-classes] Use Boot's fake classpath when completing classnames
Browse files Browse the repository at this point in the history
Performance drop: 14.37%
Was: 15.820ms
Now: 18.093ms
  • Loading branch information
alexander-yakushev committed Aug 8, 2016
1 parent c830761 commit 7c376ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject compliment "0.3.1"
(defproject compliment "0.3.2-SNAPSHOT"
:description "The Clojure completion library you deserve"
:url "https://github.com/alexander-yakushev/compliment"
:license {:name "Eclipse Public License"
Expand Down
4 changes: 3 additions & 1 deletion src/compliment/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
(if android-vm?
()
(mapcat #(.split (or (System/getProperty %) "") File/pathSeparator)
["sun.boot.class.path" "java.ext.dirs" "java.class.path"])))
["sun.boot.class.path" "java.ext.dirs" "java.class.path"
;; This is where Boot keeps references to dependencies.
"fake.class.path"])))

(defn- list-files
"Given a path (either a jar file, directory with classes or directory with
Expand Down

0 comments on commit 7c376ea

Please sign in to comment.