Browse Source

Forward filtering optimization

master
Arun Prakash Jana 6 years ago
parent
commit
ca3b27daf2
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      nnn.c

+ 6
- 1
nnn.c View File

@@ -1158,7 +1158,12 @@ filterentries(char *path)
wln[len] = (wchar_t)*ch;
wln[++len] = '\0';
wcstombs(ln, wln, REGEX_MAX);
ndents = total;

/* Forward-filtering optimization:
* - new matches can only be a subset of current matches.
*/
/* ndents = total; */

if (matches(pln) == -1)
continue;



Loading…
Cancel
Save