Manny S.

Parallel Grep

Multi-threaded file search tool using Boyer-Moore for high performance

Problem

Searching thousands of files for hundreds of target strings sequentially was too slow for practical use, creating a bottleneck whenever large-scale text searches were needed.

Architecture

A C# WPF application implementing a multi-threaded search engine built around the Boyer-Moore string-matching algorithm, distributing file scans across threads to parallelise what was previously a sequential operation.

Engineering decisions

Chose Boyer-Moore over naive substring matching for its sub-linear average-case performance on longer patterns, and multi-threaded the file-level scan since I/O and matching parallelised cleanly across files.