nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ca3b27daf2a147ce944d90f13f4e4535f0696874
parent bf36462a2b2141d0454d13d98074ce4e7e706fd1
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed,  8 Aug 2018 05:04:34 +0530

Forward filtering optimization

Diffstat:
Mnnn.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nnn.c b/nnn.c @@ -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;