FastFind.Windows 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FastFind.Windows --version 2.2.0
                    
NuGet\Install-Package FastFind.Windows -Version 2.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FastFind.Windows" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FastFind.Windows" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="FastFind.Windows" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FastFind.Windows --version 2.2.0
                    
#r "nuget: FastFind.Windows, 2.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FastFind.Windows@2.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FastFind.Windows&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=FastFind.Windows&version=2.2.0
                    
Install as a Cake Tool

FastFind.NET

Ultra-high performance cross-platform file search library for .NET 10

License .NET Build Status

Packages

Package Version Description
FastFind.Core NuGet Core interfaces, SIMD string matching, StringPool
FastFind.Windows NuGet NTFS change-journal enumeration and monitoring
FastFind.Unix NuGet Linux/macOS parallel enumeration, file monitoring
FastFind.SQLite NuGet Disk-backed persistent index

Key Features

  • Cross-Platform SIMD: Vector256/Vector128 auto-dispatch (AVX2, SSE2, NEON) — 1.87M ops/sec
  • NTFS change-journal enumeration (Windows, administrator): 31K+ files/sec NTFS enumeration, 30x faster than standard APIs
  • Parallel BFS Enumeration (Linux/macOS): Channel-based depth-aware parallel traversal
  • Real-Time Monitoring: USN Journal (Windows) / inotify (Linux) / FSEvents (macOS)
  • Disk-Backed Index: Keep the index in SQLite instead of memory — footprint stays flat as the corpus grows
  • Memory Optimized: paths and names are interned, so a repeated directory prefix is stored once
  • Auto Platform Detection: ModuleInitializer auto-registration

Installation

dotnet add package FastFind.Core

# Platform-specific (auto-registered at runtime)
dotnet add package FastFind.Windows    # Windows
dotnet add package FastFind.Unix       # Linux / macOS

dotnet add package FastFind.SQLite     # Optional: persistent index

Quick Start

using FastFind;

// Platform auto-detected — creates Windows, Linux, or macOS engine
using var engine = FastFinder.CreateSearchEngine();

await engine.StartIndexingAsync(new IndexingOptions
{
    SpecificDirectories = [@"D:\Projects"],         // Windows
    // MountPoints = ["/home", "/opt"],             // Linux / macOS
    ExcludedPaths = ["node_modules", ".git", "bin", "obj"],
    CollectFileMetadata = true   // sizes and timestamps on the Windows MFT path
});

while (engine.IsIndexing) await Task.Delay(500);

var results = await engine.SearchAsync(new SearchQuery
{
    BasePath = @"D:\Projects",
    SearchText = "controller",
    ExtensionFilter = ".cs",
    MaxResults = 100
});

await foreach (var file in results.Files)
{
    Console.WriteLine($"{file.Name} ({file.SizeFormatted}) - {file.DirectoryPath}");
}

Keeping the index on disk

By default the index lives in memory. Give the engine a persistence store and it answers queries from disk instead, so its footprint does not grow with the number of indexed files:

using FastFind;
using FastFind.SQLite;

await using var store = SqlitePersistence.Create(@"D:\cache\index.db");
await store.InitializeAsync();

using var engine = FastFinder.CreateSearchEngine(store);

// Index once; the store survives the process.
await engine.StartIndexingAsync(new IndexingOptions { SpecificDirectories = [@"D:\Projects"] });
while (engine.IsIndexing) await Task.Delay(500);

Console.WriteLine($"{engine.Index!.Count} files indexed, {engine.Index.MemoryUsage} bytes held in memory");

Pass PersistenceMode.MirrorInMemory instead to keep the in-memory index for speed and use the store purely for durability — that costs the memory of both, and is the right choice only when the corpus comfortably fits.

The engine does not dispose a store you created; you keep ownership.

A store is safe to use from several threads or tasks at once — searching while indexing needs no coordination from the caller, because each operation takes its own pooled connection. See the concurrency notes for what a transaction covers and the one shape that is not supported.

Performance

Metric Windows Linux macOS
SIMD String Matching 1.87M ops/sec 1.87M ops/sec 1.87M ops/sec
File Enumeration 31K files/sec (MFT) Channel BFS parallel Channel BFS parallel
Search Operations 1.68M ops/sec 1.68M ops/sec 1.68M ops/sec
Memory per Op 439 bytes 439 bytes 439 bytes

Platform Support

Platform Status Package
Windows 10/11, Server 2019+ Production FastFind.Windows
Linux (Ubuntu, RHEL, Alpine) Preview FastFind.Unix
macOS (Ventura+) Preview FastFind.Unix

Documentation

License

MIT License - see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.4.0 332 9/12/2026
2.3.0 104 9/11/2026
2.2.0 93 9/11/2026
2.1.0 111 9/9/2026
2.0.0 116 9/9/2026
1.4.0 269 5/25/2026
1.3.3 179 5/10/2026
1.3.2 231 3/8/2026
1.3.1 133 3/6/2026
1.3.0 148 2/27/2026
1.2.0 135 2/27/2026
1.1.0 134 2/27/2026
1.0.13 146 1/14/2026
1.0.12 151 1/13/2026
1.0.11 157 1/10/2026
1.0.10 147 1/9/2026
1.0.9 257 11/26/2025
1.0.3 250 9/25/2025
1.0.2 315 8/8/2025
1.0.0 224 7/31/2025