Pkg.installed("DataFrames") should be substantially faster since it just
checks for a single package instead of checking all of them. This is yet
another one of the growing number of issues caused by the incredible
slowness of forking git so much in the package manager.On Sun, Jun 8, 2014 at 12:54 AM, James Crist <[email protected]> wrote: > I'm working on a package that has an optional dependency. As in it works > without it, but has additional functionality if it is installed. Because > the packages are still in development, they're not in Metadata right now. > So I'm checking with: > > if haskey(Pkg.installed(), "Pkgname") > import added_functionality > end > > This call takes 22 seconds on my machine. Is there a faster/better way to > go about doing this? >
