Skip to content
Browse files
Fix performance regression. Yes I know this sucks if you have lines i…
…n ignore files that reference paths *and* use wildcards. Sucks to be you right now, but it's a 7x performance improvement.
  • Loading branch information
ggreer committed Aug 23, 2012
1 parent a87aa8f commit e344ca087099431c1bcf733b3ae28316f6932683
Showing 1 changed file with 3 additions and 0 deletions.
@@ -325,10 +325,13 @@ void search_dir(const pcre *re, const pcre_extra *re_extra, const char* path, co

/* TODO: this kills performance */
log_debug("dir %s type %i", dir_full_path, dir->d_type);
if (!filepath_filter(dir_full_path)) {
goto cleanup;

if (dir->d_type != DT_DIR) {
if (opts.file_search_regex) {

0 comments on commit e344ca0

Please sign in to comment.