Skip to content

Instantly share code, notes, and snippets.

@r17x
Last active May 11, 2026 06:41
Show Gist options
  • Select an option

  • Save r17x/f84634d153a45e0de3fc88879d629f20 to your computer and use it in GitHub Desktop.

Select an option

Save r17x/f84634d153a45e0de3fc88879d629f20 to your computer and use it in GitHub Desktop.
tmp/fff.log
--- a/crates/fff-c/src/lib.rs
+++ b/crates/fff-c/src/lib.rs
@@ -294,6 +294,8 @@ pub unsafe extern "C" fn fff_destroy(fff_handle: *mut c_void) {
if let Ok(mut guard) = instance.picker.write()
&& let Some(mut picker) = guard.take()
{
+ picker.cancel();
+ std::thread::sleep(Duration::from_millis(50));
picker.stop_background_monitor();
}
2026-05-11T06:22:58.442186Z INFO fff_search::log: FFF tracing initialized with log file: /tmp/fff.log
2026-05-11T06:22:58.442207Z INFO fff_search::file_picker: Spawning background threads: base_path=/Users/r17/.config/nixpkgs, warmup=false, content_indexing=true, mode=Ai
2026-05-11T06:22:58.442719Z DEBUG fff_search::file_picker: Git repository found at: /Users/r17/.config/nixpkgs/
2026-05-11T06:22:58.442734Z INFO fff_search::file_picker: SCAN: Starting filesystem walk and git status (async)
2026-05-11T06:22:58.442741Z INFO fff_search::file_picker: Background pool: 6 threads (system has 8)
2026-05-11T06:22:58.443153Z INFO read_status_impl: fff_search::git: new
2026-05-11T06:22:58.443280Z DEBUG fff_search::file_picker: SCAN: Starting file walker
2026-05-11T06:22:58.473828Z INFO fff_search::file_picker: SCAN: File walking completed in 30.548208ms for 5824 files
2026-05-11T06:22:58.476029Z INFO fff_search::file_picker: SCAN: Walk completed in 33.291583ms (5824 files, 1001 dirs, chunked_store=0.13MB, files_vec=0.58MB, dirs=0.09MB, FileItem=104B)
2026-05-11T06:22:58.481349Z INFO grep_search{file_count=5824}: fff_search::grep: new
2026-05-11T06:22:58.481462Z DEBUG grep_search{file_count=5824}:perform_grep{prefiltered_count=5766}: fff_search::grep: new
2026-05-11T06:22:58.573478Z DEBUG grep_search{file_count=5824}:perform_grep{prefiltered_count=5766}: fff_search::grep: close time.busy=92.0ms time.idle=2.83µs
2026-05-11T06:22:58.573518Z INFO grep_search{file_count=5824}: fff_search::grep: close time.busy=92.2ms time.idle=9.25µs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment