forked from VimPlug/jedi
Reduce limits of files to parse by quite a bit
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user