jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.73k stars 105 forks source link

Recursively indexing a directory is slow. #102

Open Jackojc opened 6 years ago

Jackojc commented 6 years ago

Maybe instead of indexing recursively, you can just index the current directory and when the user enters another directory then index that one and so on.

jmacdonald commented 6 years ago

Hi @Jackojc! Is it possible that you're indexing a bunch of files that you don't need to? Assuming you're in a project directory, and not ~, it's possible there are folders in your project that have a lot of files (thinking tmp/metadata files that can accumulate). Some additional info would be great; indexing is fast here, even on spinning disks.

Jackojc commented 6 years ago

I tend to edit standalone configs while in home or root so I generally don't use amp in a project setting as much.