dmtrKovalenko / dmtrKovalenko/fff
.gitignore parsed in a loop and causing high CPU usage
- Dominant language
- Rust
- Stars
- 10.7k
- Forks
- 446
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 39
Description
```
2025-09-10T06:49:26.963026Z DEBUG fff_nvim::file_picker: lua/fff/rust/file_picker.rs:501: Git repository found at: /home/user/repo/
2025-09-10T06:49:26.963180Z INFO fff_nvim::git: lua/fff/rust/git.rs:37: GIT: Reading git status
2025-09-10T06:49:27.005761Z INFO fff_nvim::git: lua/fff/rust/git.rs:47: GIT: Status query completed in 42.577684ms
2025-09-10T06:49:27.155700Z INFO fff_nvim::file_picker: lua/fff/rust/file_picker.rs:563: SCAN: File walking completed in 193.340847ms
2025-09-10T06:49:27.163356Z INFO fff_nvim::file_picker: lua/fff/rust/file_picker.rs:586: SCAN: Total scan time 201.150139ms for 81867 files
2025-09-10T06:49:27.182984Z INFO fff_nvim::file_picker: lua/fff/rust/file_picker.rs:408: Filesystem scan completed: found 81867 files
2025-09-10T06:49:27.296746Z DEBUG fff_nvim::background_watcher: lua/fff/rust/background_watcher.rs:85: Processing 13074 debounced events
2025-09-10T06:49:27.297104Z INFO fff_nvim::background_watcher: lua/fff/rust/background_watcher.rs:106: Detected change in the ignore definition file: /home/user/repo/.gitignore
2025-09-10T06:49:27.297109Z INFO fff_nvim::file_picker: lua/fff/rust/file_picker.rs:490: SCAN: Starting parallel filesystem scan and git status
2025-09-10T06:49:27.297263Z INFO fff_nvim::file_picker: lua/fff/rust/file_picker.rs:528: SCAN: Starting file walker
```
fff enters a loop, and this happens over and over again, just by opening vim (without any files). On a normal repo, cpu usage stays at ~7%, but one with submodules (around 20), it goes to 80%
The gitignore file is definitely not changed. I disabled fff, ran vim with a file opened from the repo, and then `inotifywait -r -m .` -> I see no events, not even file opens.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.