bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54860] Less performance of -execdir echo {} +


From: Ahmad ElKomey
Subject: [bug #54860] Less performance of -execdir echo {} +
Date: Tue, 23 Oct 2018 07:20:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36

Follow-up Comment #6, bug #54860 (project findutils):

I ran the same command you posted:


find -D search,exec -iname "*c" -execdir echo '{}' + 2>&1 | grep -E
'dir-2|exec' 


And I got the following:


consider_visiting (early): './dir-2': fts_info=FTS_D , fts_level= 1,
prev_depth=1 fts_path='./dir-2', fts_accpath='dir-2'
consider_visiting (late): './dir-2': fts_info=FTS_D , isdir=1 ignore=0
have_stat=1 have_type=1 
consider_visiting (early): './dir-2/foo.c': fts_info=FTS_NSOK, fts_level= 2,
prev_depth=1 fts_path='./dir-2/foo.c', fts_accpath='foo.c'
consider_visiting (late): './dir-2/foo.c': fts_info=FTS_NSOK, isdir=0 ignore=0
have_stat=0 have_type=1 
consider_visiting (early): './dir-2/file': fts_info=FTS_NSOK, fts_level= 2,
prev_depth=2 fts_path='./dir-2/file', fts_accpath='file'
consider_visiting (late): './dir-2/file': fts_info=FTS_NSOK, isdir=0 ignore=0
have_stat=0 have_type=1 
consider_visiting (early): './dir-2/dir-4': fts_info=FTS_D , fts_level= 2,
prev_depth=2 fts_path='./dir-2/dir-4', fts_accpath='dir-4'
consider_visiting (late): './dir-2/dir-4': fts_info=FTS_D , isdir=1 ignore=0
have_stat=1 have_type=1 
Outstanding execdirs:-execdir multiple 2 args: echo ./foo.c 
consider_visiting (early): './dir-2/dir-4/file': fts_info=FTS_NSOK, fts_level=
3, prev_depth=2 fts_path='./dir-2/dir-4/file', fts_accpath='file'
consider_visiting (late): './dir-2/dir-4/file': fts_info=FTS_NSOK, isdir=0
ignore=0 have_stat=0 have_type=1 
consider_visiting (early): './dir-2/dir-4': fts_info=FTS_DP, fts_level= 2,
prev_depth=3 fts_path='./dir-2/dir-4', fts_accpath='dir-4'
consider_visiting (late): './dir-2/dir-4': fts_info=FTS_DP, isdir=1 ignore=1
have_stat=1 have_type=1 
consider_visiting (early): './dir-2/another.c': fts_info=FTS_NSOK, fts_level=
2, prev_depth=2 fts_path='./dir-2/another.c', fts_accpath='another.c'
consider_visiting (late): './dir-2/another.c': fts_info=FTS_NSOK, isdir=0
ignore=0 have_stat=0 have_type=1 
consider_visiting (early): './dir-2/dir-5': fts_info=FTS_D , fts_level= 2,
prev_depth=2 fts_path='./dir-2/dir-5', fts_accpath='dir-5'
consider_visiting (late): './dir-2/dir-5': fts_info=FTS_D , isdir=1 ignore=0
have_stat=1 have_type=1 
Outstanding execdirs:-execdir multiple 2 args: echo ./another.c 
consider_visiting (early): './dir-2/dir-5/file': fts_info=FTS_NSOK, fts_level=
3, prev_depth=2 fts_path='./dir-2/dir-5/file', fts_accpath='file'
consider_visiting (late): './dir-2/dir-5/file': fts_info=FTS_NSOK, isdir=0
ignore=0 have_stat=0 have_type=1 
consider_visiting (early): './dir-2/dir-5': fts_info=FTS_DP, fts_level= 2,
prev_depth=3 fts_path='./dir-2/dir-5', fts_accpath='dir-5'
consider_visiting (late): './dir-2/dir-5': fts_info=FTS_DP, isdir=1 ignore=1
have_stat=1 have_type=1 
consider_visiting (early): './dir-2': fts_info=FTS_DP, fts_level= 1,
prev_depth=2 fts_path='./dir-2', fts_accpath='dir-2'
consider_visiting (late): './dir-2': fts_info=FTS_DP, isdir=1 ignore=1
have_stat=1 have_type=1 
Outstanding execdirs:-execdir multiple 3 args: echo ./bar.c ./one.c


If you sort both outputs (yours and mine), you get the difference as follows:


- marks yours
+ marks mine

- Outstanding execdirs:-execdir multiple 3 args: echo ./foo.c ./another.c 
- Outstanding execdirs:-execdir multiple 3 args: echo ./one.c ./bar.c 
+ Outstanding execdirs:-execdir multiple 2 args: echo ./another.c 
+ Outstanding execdirs:-execdir multiple 2 args: echo ./foo.c 
+ Outstanding execdirs:-execdir multiple 3 args: echo ./bar.c ./one.c


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54860>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]