Apparently what is causing this issue is presence of recursive symlinks inside the source-tree, this is confusing findall().
I observed that a single symlink can easily double the execution time from 5s to 10s and boost the number of returned entries to from 90k to 160k:
time python -c "from distutils.filelist import findall; print(len(findall('.')))"
Apparently what is causing this issue is presence of recursive symlinks inside the source-tree, this is confusing findall().
I observed that a single symlink can easily double the execution time from 5s to 10s and boost the number of returned entries to from 90k to 160k:
time python -c "from distutils.filelist import findall; print(len( findall( '.')))"