lukas-reineke / cmp-rg

ripgrep source for nvim-cmp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too much memory usage.

opened this issue · comments

Problem

Using around 2.3GB of ram on my 4GB ram machine. Is there a way to limit the number of instances or something?

For context there was like two typescript files both less than 100LOC but I guess thats irrelevant as it searches the whole project. I am assuming it respects gitignore though.

Potential Workarounds

Maybe expose functionality to debounce requests to run ripgrep?

That sounds very high. Does the same happen when you run ripgrep by itself?

ripgrep does respect gitignore, there is always only one instance running, and it is already debounced.
If the same happens when you run ripgrep on its own, then there isn't really anything I can do.