From ffb89bf416a4883cc12e5ed247885d4700b00a0f Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sun, 20 Aug 2023 18:31:17 +0000 Subject: [PATCH] perf: tweak uv readdir params for performance --- lua/oil/adapters/files.lua | 2 +- lua/oil/fs.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/oil/adapters/files.lua b/lua/oil/adapters/files.lua index 8d4cc18..b4b43ca 100644 --- a/lua/oil/adapters/files.lua +++ b/lua/oil/adapters/files.lua @@ -290,7 +290,7 @@ M.list = function(url, column_defs, cb) end read_next() ---@diagnostic disable-next-line: param-type-mismatch - end, 100) -- TODO do some testing for this + end, 10000) end ---@param bufnr integer diff --git a/lua/oil/fs.lua b/lua/oil/fs.lua index 3f2a489..9ad1ba4 100644 --- a/lua/oil/fs.lua +++ b/lua/oil/fs.lua @@ -186,7 +186,7 @@ M.recursive_delete = function(entry_type, path, cb) uv.fs_rmdir(path, cb) end) ---@diagnostic disable-next-line: param-type-mismatch - end, 100) -- TODO do some testing for this + end, 10000) end ---@param entry_type oil.EntryType @@ -255,7 +255,7 @@ M.recursive_copy = function(entry_type, src_path, dest_path, cb) end poll(cb) ---@diagnostic disable-next-line: param-type-mismatch - end, 100) -- TODO do some testing for this + end, 10000) end) end) end