1
0
forked from VimPlug/jedi

Reduce limits of files to parse by quite a bit

This commit is contained in:
Dave Halter
2020-01-21 22:51:57 +01:00
parent 44ba40958e
commit 6df755e8b6
2 changed files with 2 additions and 2 deletions

View File

@@ -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]

View File

@@ -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.