Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out of memory when grep_string over a large project ~61k files #943

Open
steph0xr opened this issue Jun 28, 2021 · 3 comments
Open

out of memory when grep_string over a large project ~61k files #943

steph0xr opened this issue Jun 28, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@steph0xr
Copy link

Description

nvim use all my ram when search with telescope grep_string, in a large codebase (git ls-files | wc -l --> 61k files).

Expected Behavior
limit the amount of max ram usage, or maximum search items

Actual Behavior
system freezes

Details

#Steps to reproduce:
use a large code base with minimum 60k files
launch a telescope grep_string on this project

#Environment Information:

  • nvim --version: NVIM v0.5.0-dev+1174-g9f5c8226b
  • Operating system: ubuntu
  • Telescope commit: 6ac5ee0

thanks

@steph0xr steph0xr added the bug Something isn't working label Jun 28, 2021
@joooooooooooooooooooooooooooooooooooosh

I'm getting similar behaviour in a much smaller codebase (git ls-files | wc -l --> 254 files).
Very intense RAM usage on a simple search string (several gigabytes at least, not sure how much more it would consume if it didn't max out my RAM).

  • nvim --version: NVIM v0.6.1
  • Operating System: Manjaro, kernel version 5.10.98-1-MANJARO
  • Telescope commit: 1daf091

@Conni2461
Copy link
Member

What grep_string did you actually do? Just :Telescope grep_string because that one greps for the word under cursor. Or did you do Telescope grep_string search= which basically loads every line of your project into memory so of course if your project is big enough you could run out of memory

@joooooooooooooooooooooooooooooooooooosh

I think I was initially doing Telescope grep_string search= but I just tried it with Telescope grep_string and get the same issues for certain words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants