Module search_runner

Module search_runner 

Source

Structs§

SearchTimings
Struct to hold timing information for different stages of the search process

Functions§

format_duration
Helper function to format duration in a human-readable way
perform_probe
Our main “perform_probe” function remains largely the same. Below we show how you might incorporate “search_with_structured_patterns” to handle the AST logic in a specialized path. For simplicity, we won’t fully replace the existing logic. Instead, we’ll demonstrate how you’d do it if you wanted to leverage the new approach.
print_timings
Helper function to print timing information in debug mode
search_with_structured_patterns
Helper function to search files using structured patterns from a QueryPlan. This function uses a RegexSet approach for deterministic pattern matching and collects matches by term indices. It uses the file_list_cache to get a filtered list of files respecting ignore patterns.