fuzzy_ruby_server icon indicating copy to clipboard operation
fuzzy_ruby_server copied to clipboard

High memory usage

Open tachyons opened this issue 1 year ago • 2 comments

I've tried using this in a relatively big project (GitLab). But Memory consumption is very high

Screenshot 2023-11-20 at 3 41 01 PM

tachyons avatar Nov 20 '23 10:11 tachyons

@tachyons Hello! Very cool project, thanks for giving it a try.

By default the index is kept purely in-memory, but you can change the change the allocationType config to tempdir. This will mmap the index which should dramatically lower real memory size at the cost of some disk usage.

I found indexing and lookup performance still very good with an mmap index so I'm hoping that can solve the issue for you.

doompling avatar Nov 20 '23 17:11 doompling

@pheen Is there a way to volumize the mmap directory, as I'm using a dev container-based setup in VScode, each time on opening the VScode in the container the Fuzzy Ruby Server utilizes more memory usage, though I have the mmap config.

Can you please share the path that can be volumized for container setup?

inbasagaran007 avatar May 17 '24 05:05 inbasagaran007

Not sure sorry

doompling avatar Jul 04 '24 21:07 doompling