Replies: 2 comments 2 replies
-
Is it possible to share your whole config as a repo? Also can you confirm you see the same with nvim 0.9.4? I would try putting some logging in |
Beta Was this translation helpful? Give feedback.
-
I have added some basic timing data to the verbose report, including each files compile time, the total compile time and the total disk searching time which might help narrow down whats going on. It would be nice to include per-glob search times too but im not 100% sure on how I want to report that right now. You will have to pull the latest HEAD for the updated reporting, its not in a release yet. |
Beta Was this translation helpful? Give feedback.
-
I recently cleaned out my config and switched from Packer to Paq. When I did so, I noticed a dramatic slowdown in execution time of
api.make.build()
, increasing from about 1 second to as high as 10 seconds. This occurs upon every run, not just the initial run. I used to use it as aBufWritePost
autocmd, but I've had to disable that since it's too slow.I made sure to clear out all old state, shada, etc. data before making the switchover, just in case it was causing the problem somehow.
I do not have
vim.loader
enabled; it caused a bunch of things to break when I turned it on. But I never needed it before now either, and this doesn't seem to be related to loading modules, because it happens on every run, not just the first run.require("hotpot")
itself is instant.I tried running with
set verbose=9
, but the only commands that run before the lag are twochdir()
s. I inserted aprint()
in the_get_lua_module_path
function to see if I'd somehow introduced a loop there, but I get exactly one file printed followed by the long delay.Even with the autocmd disabled, both the
HotpotCheckNvimConfig
andHotpotCompileNvimConfig
commands take several seconds, even when no files are modified.Therefore I suspect that somehow Hotpot has started scanning a huge number of files compared to before, but I'm stuck on where to go from here, aside from flinging some
print()
s in the source code to see what happens.Any help diagnosing this would be appreciated!
Here's my full config, in
${XDG_CONFIG_HOME}/nvim/plugin/plugin-config/hotpot.lua
:plugin/plugin-config/hotpot.lua
And here's a full list of files with the
.fnl
extension in the Nvim config prefix, which I imagined should be near-instant to process, given that most of them I have not changed:find ~/.config/nvim -name '*.fnl'
Neovim version:
Hotpot version:
Beta Was this translation helpful? Give feedback.
All reactions