[infer][java] When calling InferPrint, only consider the specs file in the local results directory

Summary: On Java Buck projects, InferPrint was loading all the specs files from all the jars in the classpath. This was affecting the performance a lot when the analysis was reporting a lot of issues.

Reviewed By: cristianoc

Differential Revision: D4673226

fbshipit-source-id: 6927836
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 1a9b81c0f4
commit fba8c256d0

@ -35,11 +35,8 @@ let load_specfiles () => {
let all_filepaths = List.map f::(fun fname => Filename.concat dir fname) all_filenames;
List.filter f::is_specs_file all_filepaths
};
let specs_dirs = {
let result_specs_dir = DB.filename_to_string DB.Results_dir.specs_dir;
[result_specs_dir, ...Config.specs_library]
};
List.concat_map f::specs_files_in_dir specs_dirs
let result_specs_dir = DB.filename_to_string DB.Results_dir.specs_dir;
specs_files_in_dir result_specs_dir
};

Loading…
Cancel
Save