Re: Why is `find -name '*.txt'` much slower than '*.txt' on glusterfs?

2018-01-20 Thread Dale R. Worley
Peng Yu writes: > There are ~7000 .txt files in a directory on glusterfs. Here are the run > time of the following two commands. Does anybody know why the find command > is much slower than *.txt? Is there a way to change the API that `find` > uses to search files so that it can be more friendly t

Why is `find -name '*.txt'` much slower than '*.txt' on glusterfs?

2018-01-20 Thread Peng Yu
Hi, There are ~7000 .txt files in a directory on glusterfs. Here are the run time of the following two commands. Does anybody know why the find command is much slower than *.txt? Is there a way to change the API that `find` uses to search files so that it can be more friendly to glusterfs? $ time