Created
September 11, 2013 17:12
-
-
Save timusg/6526743 to your computer and use it in GitHub Desktop.
fast file count in large number of files in dir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time python -c "from os import listdir; print len(listdir('some dir'))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment