Re: [PATCH 1/4] pathspec: save the non-wildcard length part

2012-11-19 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: We marks pathspec with wildcards with the field use_wildcard. We could s/marks/mark; do better by saving the length of the non-wildcard part, which can be for optimizations such as f9f6e2c (exclude: do strcmp as much as s/for /used /;

[PATCH 1/4] pathspec: save the non-wildcard length part

2012-11-18 Thread Nguyễn Thái Ngọc Duy
We marks pathspec with wildcards with the field use_wildcard. We could do better by saving the length of the non-wildcard part, which can be for optimizations such as f9f6e2c (exclude: do strcmp as much as possible before fnmatch - 2012-06-07) Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com