Closed amschaal closed 7 years ago
Interesting discussion: https://code.activestate.com/lists/python-list/315077/
Turns out that checking whether the file was a text file (for preview purposes) was by far the biggest slowdown. Disabled the check, so now a user will have to try to preview to find out if it is possible! Major speed improvement though.
Listing a directory of thousands of files can time out. Try to improve performance, maybe by eliminating stats calls for every single file. Try to get file stats all at once if possible.