diff --git a/jedi/inference/dynamic_params.py b/jedi/inference/dynamic_params.py index 9c4d2fd9..3e9477f3 100644 --- a/jedi/inference/dynamic_params.py +++ b/jedi/inference/dynamic_params.py @@ -121,7 +121,7 @@ def _search_function_arguments(module_context, funcdef, string_name): module_contexts = get_module_contexts_containing_name( inference_state, [module_context], string_name, # Limit the amounts of files to be opened massively. - limit_reduction=10, + limit_reduction=5, ) else: module_contexts = [module_context] diff --git a/jedi/inference/references.py b/jedi/inference/references.py index cb83fb22..e78689ff 100644 --- a/jedi/inference/references.py +++ b/jedi/inference/references.py @@ -18,7 +18,7 @@ With os.walk, it takes about 10s to scan 11'000 files (without filesystem caching). Once cached it only takes 5s. So it is expected that reading all those files might take a few seconds, but not a lot more. """ -_PARSED_FILE_LIMIT = 50 +_PARSED_FILE_LIMIT = 30 """ For now we keep the amount of parsed files really low, since parsing might take easily 100ms for bigger files.