From 7c376ea4de2e482e8ee9fa542a29869802029fca Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Mon, 8 Aug 2016 17:41:55 +0300 Subject: [PATCH] [c.s.n-a-classes] Use Boot's fake classpath when completing classnames Performance drop: 14.37% Was: 15.820ms Now: 18.093ms --- project.clj | 2 +- src/compliment/utils.clj | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 636887d..879118c 100644 --- a/project.clj +++ b/project.clj @@ -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" diff --git a/src/compliment/utils.clj b/src/compliment/utils.clj index cb921d3..81d1ffb 100644 --- a/src/compliment/utils.clj +++ b/src/compliment/utils.clj @@ -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