perf: cache parser file list for performance

This commit is contained in:
Thomas Vigouroux 2020-08-11 14:36:13 +02:00 committed by Thomas Vigouroux
parent 8f3b601bcc
commit ba3167a1a4
2 changed files with 17 additions and 1 deletions

View file

@ -59,6 +59,8 @@ local function iter_cmd_sync(cmd_list)
end
local function run_install(cache_folder, package_path, lang, repo, with_sync)
parsers.reset_cache()
local project_name = 'tree-sitter-'..lang
local project_repo = cache_folder..'/'..project_name
-- compile_location only needed for typescript installs.