v2 includes strncmp_equal and directory level pattern filter. user
time of "git ls-files --exclude-standard -o" on webkit.git below.
Looking pretty good.
before after
user 0m0.607s 0m0.365s
user 0m0.613s 0m0.366s
user 0m0.613s 0m0.374s
user 0m0.621s 0m0.374s
user 0m0.621s 0m0.377s
user 0m0.622s 0m0.381s
user 0m0.624s 0m0.381s
user 0m0.626s 0m0.383s
user 0m0.628s 0m0.384s
user 0m0.638s 0m0.384s
Nguyễn Thái Ngọc Duy (6):
match_pathname: avoid calling strncmp if baselen is 0
dir.c: inline convenient *_icase helpers
match_basename: use strncmp instead of strcmp
match_{base,path}name: replace strncmp_icase with strnequal_icase
dir.c: pass pathname length to last_exclude_matching
exclude: filter patterns by directory level
attr.c | 5 ++-
dir.c | 114 ++++++++++++++++++++++++++++++++++++++++++++---------------------
dir.h | 27 +++++++++++++---
3 files changed, 104 insertions(+), 42 deletions(-)
--
1.8.1.2.536.gf441e6d
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html